-
Bug
-
Resolution: Done
-
Major
-
EAP 5.0.1, EAP 5.1.0 Post Release
-
None
-
Fedora 12, JDK 1.6, JBoss EAP 5.1, MySQL 5
-
Release Notes
-
-
Documented as Resolved Issue
Hibernate has a known trouble running queries using "count" when the entity has composite keys, like: select count(foobar) from Foobar foobar:
- ERROR [JDBCExceptionReporter] Operand should contain 1 column(s)
Seam EntityQuery has a workaround, using count instead of count(alias)(spec way) if you use entityQuery.resultCount.
It's works with Seam 2.0.x but no more in Seam 2.2.x