Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

inner query in hibernate

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi List[],
I have below query.How can i write the query using HQL or Criteria .Please tell me.



Thanks & Regards
Pankaj
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What was your attempt? And who is List[]?
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i tried using HQL like this


But its did not working and throwing exception.

SO is any other way in hibernate to run this sql using HQL or Criteria.

By the way List[] mean the people of java ranch ........
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic