aspose file tools
The moose likes Other Application Frameworks and the fly likes Hibernate:Trying to emunate select  * from my_table where ID in ('MOSU0002','MOSU0003') in Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Reply Bookmark "Hibernate:Trying to emunate select  * from my_table where ID in ( Watch "Hibernate:Trying to emunate select  * from my_table where ID in ( New topic
Author

Hibernate:Trying to emunate select * from my_table where ID in ('MOSU0002','MOSU0003') in Hibernate

Sudhakar Duraiswamy
Ranch Hand

Joined: Dec 20, 2007
Posts: 43
Hi All,

I am trying to emulate the following query in Hibernate

Sql Query


Result:



But the issue is when i try this with Hibernate
HQl:




Result



Issue: It fetches the same row twice .
Why is this anamoly ...................

Could any one post the solution





Sudhakar
SCJP 5.0 93%| SCWCD (prep. ongoing))
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate:Trying to emunate select * from my_table where ID in ('MOSU0002','MOSU0003') in Hibernate
 
Similar Threads
comparing two table - hibernate criteria
hibernate how to make a count and group by
Query two tables using hibernate
Query Optimization
Iterating a List Using JSTL