|Query on a attribute in the interface that is used for variable 1-1 mapping [message #933779]
||Fri, 05 October 2012 06:35
| Rice Yeh
Registered: July 2009
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.
Powered by FUDForum
. Page generated in 0.01673 seconds