-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: EAP 5.0.1, EAP 5.1.0 Post Release
-
Fix Version/s: EAP_EWP 5.1.1
-
Component/s: Seam
-
Labels:None
-
Environment:
Fedora 12, JDK 1.6, JBoss EAP 5.1, MySQL 5
-
Affects:Release Notes
-
Release Notes Text:
-
Release Notes Docs Status: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
- is related to
-
JBSEAM-4744 EntityQuery.resultList throws a exception when the entity has composite key
-
- Closed
-