@MapKeyJoinColumns always throws an exception

Description

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.

Activity

Brett MeyerMarch 7, 2014 at 10:08 PM

Bulk closing tickets resolved in released versions

Emmanuel BernardMarch 14, 2011 at 8:04 PM

Done, thanks.

Fixed

Details

Assignee

Reporter

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