Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate query question

 
Payam Fard
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic