spkhillar / hibernate-generic-dao

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

find() with dual primary key. #96

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
NOTE: If you have a question rather than a bug report or feature request,
please post at http://groups.google.com/group/java-generic-dao .

What steps will reproduce the problem?
1. call GenericDAO.count<T,ID> when Object has dual Id without any relation 
another objects.
2.
3.

What is the expected output? What do you see instead?
as is:
 select (count((id1, id2)) as col  from ...

to be:
 select (count((id1)) as col  from ... or select (count((*)) as col  from ...

What version of the product are you using? On what operating system?
Ubuntu 12.04
hibernate-geneirc-dao 1.1.0
Springframework 3.1.1.RELEASE

Please provide any additional information below.
https://groups.google.com/group/java-generic-dao/browse_thread/thread/a0db38dedf
c0b1c6

Original issue reported on code.google.com by koolguyj...@gmail.com on 22 May 2012 at 8:46

GoogleCodeExporter commented 9 years ago
not find() , count()

Original comment by koolguyj...@gmail.com on 22 May 2012 at 8:47