This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate query question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Hibernate query question" Watch "Hibernate query question" New topic
Author

Hibernate query question

Payam Fard
Ranch Hand

Joined: Jan 31, 2003
Posts: 65
Hi all,

How can I do the following query using hibernate's query by criteria or query by example?

select * from x where x.y in (select t.y from t where t.id=3)

Any help would be appreciated.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Hibernate query question
 
Similar Threads
database
how to find out 3rd max salary from an emp table?
SQL error
how to improve performance
how to write select query when where condition contains ampersand symbol(&)?