-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: EAP 5.0.0, EAP 5.0.1
-
Fix Version/s: EAP_EWP 5.1.0
-
Component/s: Hibernate
-
Labels:None
-
Affects:Release Notes
-
Workaround Description:
[is related to http://opensource.atlassian.com/projects/hibernate/browse/HHH-2088]
Suppose to have entity A with a one-to-one constrained relationship to an entity B, called bRel.
The query: "from A a, B b where a.bRel = b" raises a TypeMismatchException, even if bRel and b are instances of the same entity.
This happens because in BinaryLogicOperatorNode:
- lhsType is org.hibernate.type.Type = org.hibernate.type.OneToOneType(B)", with getColumnSpan returning 0.
- rhsType is org.hibernate.type.Type = org.hibernate.type.ManyToOneType(B)", with getColumnSpan returning 1.
And it compares the two columnspans.