[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5093) CriteriaQuery using count leads to wrong query
Frederic Müller (JIRA)
noreply at atlassian.com
Fri Apr 9 12:10:58 EDT 2010
CriteriaQuery using count leads to wrong query
----------------------------------------------
Key: HHH-5093
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5093
Project: Hibernate Core
Issue Type: Bug
Components: entity-manager
Affects Versions: 3.5.0-Final
Reporter: Frederic Müller
Using "query.select(cb.count(root));" we get a query like this:
select count() from test.Entity as generatedAlias0 left join generatedAlias0.message as generatedAlias1
Tried almost everything but this problem doesn't seem to have been addressed for quite some time now.
Seems like some other people still have the same problem and yet nobody seems to bother.
https://forum.hibernate.org/viewtopic.php?p=2428452
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list