This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes inner query in hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "inner query in hibernate" Watch "inner query in hibernate" New topic
Author

inner query in hibernate

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
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

Joined: Oct 25, 2008
Posts: 2700

What was your attempt? And who is List[]?


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300

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 ........
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: inner query in hibernate
 
Similar Threads
Getting same record in query.
Invalid column name while calling store procedure
inner query in hibernate
Hibernate & Date
Query not returning any data..