[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5940) @MapKeyJoinColumns always throws an exception
Bob Reynolds (JIRA)
noreply at atlassian.com
Fri Feb 18 18:03:05 EST 2011
@MapKeyJoinColumns always throws an exception
---------------------------------------------
Key: HHH-5940
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5940
Project: Hibernate Core
Issue Type: Bug
Components: annotations
Affects Versions: 3.5.6
Reporter: Bob Reynolds
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list