File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

inner query in hibernate

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 303
Hi List[],
I have below query.How can i write the query using HQL or Criteria .Please tell me.

Thanks & Regards
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: 303

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:
subject: inner query in hibernate
It's not a secret anymore!