Fixed
Details
Assignee
Emmanuel BernardEmmanuel BernardReporter
RobertRRobertR(Deactivated)Components
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Emmanuel Bernard
Emmanuel BernardReporter
RobertR
RobertR(Deactivated)Components
Fix versions
Affects versions
Priority
Created February 19, 2011 at 1:02 AM
Updated April 22, 2015 at 6:24 PM
Resolved March 14, 2011 at 8:04 PM
Using the annotation @MapKeyJoinColumns always throws an exception, which is obvious when you look at AnnotationBinder.java (line 1772 in 3.5.6):
if ( property.isAnnotationPresent( MapKeyJoinColumns.class ) ) {
stuff...
joinKeyColumns = new JoinColumn[mapKeyJoinColumns.length];
stuff...
if ( joinKeyColumns != null ) {
throw new AnnotationException(
"@MapKeyJoinColumn and @MapKeyJoinColumns used on the same property: "
+ BinderHelper.getPath( propertyHolder, inferredData )
);
}
}
The problem here is that the if statement is always true because joinKeyColumns was created as non-null above.