@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.

Environment

None

Activity

Show:
Emmanuel Bernard
March 14, 2011, 8:04 PM

Done, thanks.

Brett Meyer
March 7, 2014, 10:08 PM

Bulk closing tickets resolved in released versions

Assignee

Emmanuel Bernard

Reporter

RobertR

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure