Regular |
 |
Joined: Sat Nov 25, 2006 11:37 am Posts: 72
|
I have an entity mapped to a table with a composite PK.
A JPA QL query of the form:
select COUNT(o) from Entity as o
creates the following invalid SQL:
SELECT COUNT(PK1, PK2) FROM EntityTable
Using Toplink as JPA provider against the same entities and queries works fine as Toplink emits:
SELECT COUNT(*) FROM EntityTable
Is this a Hibernate bug or am I incorrectly using the JPA QL?
This is with the latest version of Hibernate against a MySQL 4.1.x database.
|
|