aspose file tools*
The moose likes Object Relational Mapping and the fly likes hql not returing unique values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "hql not returing unique values" Watch "hql not returing unique values" New topic
Author

hql not returing unique values

sheik usman
Greenhorn

Joined: Nov 16, 2013
Posts: 1


hbm.xml




when the test class run it returns only the last record of the dp table. meas if db contain 5 record then test class returns 5 times of last record . help me please

suppose db contain (1) usman,hi,12/11/2013, (2) pavan,hello,2/12/2013,
output is pavan,hello,2/12/2013, pavan,hello,2/12/2013,


but when we use createSqlQuery output is getting unique values



what is the problem please help me
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hql not returing unique values