[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6104) Criteria query on interface with projections produces unexpected result
David Donn (JIRA)
noreply at atlassian.com
Sun Apr 10 20:10:59 EDT 2011
Criteria query on interface with projections produces unexpected result
-----------------------------------------------------------------------
Key: HHH-6104
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6104
Project: Hibernate Core
Issue Type: Bug
Affects Versions: 3.2.6
Reporter: David Donn
If you have three classes A, B and C that inherit from a common superclass D. The classes are mapped one table for each class A, B and C.
When you do a count projection you get three rows returned. A count for each concrete class. It should return one row only.
session.createCriteria(D.class).setProjection(Projections.rowCount())
--
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