[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5093) CriteriaQuery using count leads to wrong query

Frederic Müller (JIRA) noreply at atlassian.com
Mon Apr 19 06:46:21 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=36490#action_36490 ] 

Frederic Müller commented on HHH-5093:
--------------------------------------

The problem is resolved. It was caused by older libs that were loaded by Glassfish and shadowed the new ones. So please close this issue. 

Thanks

> 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