File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 301
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: 301

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 ........
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: inner query in hibernate