Register / Login
Object Relational Mapping
HQL Query to Criteria?
Rafael De la Guetto
posted 5 years ago
I am having a hard time trying to translate this query to Criteria:
FROM Entity_1 obj WHERE obj IN (FROM Entity2) OR obj IN (FROM Entity3)
I cannot find in the documentation the way to do it. Is this a case in which Criteria is just not as powerful as HQL??
Thanks in advance!
Difference between HQL and DetachedCriteria
Difference between Criteria API and HQL Queries?
Hibernate: query optimization
Trim Spaces in Criteria and Expression
Trouble in using joins in hibernate