Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsQuery on a attribute in the interface that is used for variable 1-1 mapping
https://www.eclipse.org/forums/index.php/mv/msg/393527/933779/#msg_933779
I am moving my project from hibernate to eclipselink because of its richer OR mapping. One of these mappings impresses me is the variable 1-1 relationship and seems that joining on the variable 1-1 relationship is supported (right?). However, I find that I cannot set a criteria based on an attribute on the interface used for the variable 1-1 relationship with no mapping for the attribute is found as show in the following section. Of course, I can use subquery to get my job done but if joining on the variable 1-1 supported, using subquery seems not over-skill.
java.lang.IllegalArgumentException: The attribute [number] from the managed type [EntityTypeImpl@178721701:Orderable [ javaType: interface xs.logistics.Orderable descriptor: RelationalDescriptor(xs.logistics.Orderable --> []), mappings: 0]] is not present.
at org.eclipse.persistence.internal.jpa.metamodel.ManagedTypeImpl.getAttribute(ManagedTypeImpl.java:147)
at org.eclipse.persistence.internal.jpa.querydef.FromImpl.get(FromImpl.java:312)
Rice
]]>Rice Yeh2012-10-05T10:35:18-00:00Re: Query on a attribute in the interface that is used for variable 1-1 mapping
https://www.eclipse.org/forums/index.php/mv/msg/393527/933989/#msg_933989
http://www.eclipse.org/forums/index.php/mv/msg/169394/538463/#msg_538463]]>Gordon Yorke2012-10-05T14:38:58-00:00Re: Query on a attribute in the interface that is used for variable 1-1 mapping
https://www.eclipse.org/forums/index.php/mv/msg/393527/934008/#msg_934008
Rice]]>Rice Yeh2012-10-05T14:59:27-00:00