dinesh786123 / hibernate-generic-dao

Automatically exported from code.google.com/p/hibernate-generic-dao
0 stars 0 forks source link

Issue with Distinct with hibernate 4.3,5 #115

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
While using setDistinct(true) to the field it generates the sql as below

select distinct null from com.Test _it where _it.colourCode = :p1 order by 
_it.timeStamp desc

what could be the issue

Original issue reported on code.google.com by mavillas...@gmail.com on 6 Nov 2014 at 5:53

GoogleCodeExporter commented 8 years ago
even for setDistinct(fasle) its giving same as 

select null from com.Test _it where _it.colourCode = :p1 order by _it.timeStamp 
desc

Original comment by mavillas...@gmail.com on 6 Nov 2014 at 6:28