File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
Johan den Boer
Joined: Apr 08, 2008
Aug 29, 2010 02:13:36
How can I do this query in hibernate using criteria, projections, restrictions
select * from my_table where id = (select id from other_table where name = 'abc')
thanks a lot
Johan<br /> <br />scjp, scjd
Joined: Apr 14, 2004
Aug 31, 2010 02:33:16
The HQL is not that different. What have you tried?
I agree. Here's the link:
subject: Hibernate subquery
Minus Operation Query
please help How to Write Sub Query in Hibernate
Hibernate_listing database values
hibernate how to make a count and group by
two table mapping.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015