HHH-4796 fix NPE when an @AssociationOverride joinColumn is set but no @AssociationOverride joinTable is on a given property
Fix minor issues git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18554 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
79bb60ea89
commit
b520a4a11e
|
@ -199,7 +199,7 @@ public abstract class AbstractPropertyHolder implements PropertyHolder {
|
|||
private JoinColumn[] getExactOverriddenJoinColumn(String propertyName) {
|
||||
JoinColumn[] override = null;
|
||||
if ( parent != null ) {
|
||||
override = parent.getOverriddenJoinColumn( propertyName );
|
||||
override = parent.getExactOverriddenJoinColumn( propertyName );
|
||||
}
|
||||
if ( override == null && currentPropertyJoinColumnOverride != null ) {
|
||||
override = currentPropertyJoinColumnOverride.get( propertyName );
|
||||
|
@ -249,9 +249,9 @@ public abstract class AbstractPropertyHolder implements PropertyHolder {
|
|||
private JoinTable getExactOverriddenJoinTable(String propertyName) {
|
||||
JoinTable override = null;
|
||||
if ( parent != null ) {
|
||||
override = parent.getOverriddenJoinTable( propertyName );
|
||||
override = parent.getExactOverriddenJoinTable( propertyName );
|
||||
}
|
||||
if ( override == null && currentPropertyJoinColumnOverride != null ) {
|
||||
if ( override == null && currentPropertyJoinTableOverride != null ) {
|
||||
override = currentPropertyJoinTableOverride.get( propertyName );
|
||||
}
|
||||
if ( override == null && holderJoinTableOverride != null ) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// $Id:$
|
||||
// $Id$
|
||||
/*
|
||||
* Hibernate, Relational Persistence for Idiomatic Java
|
||||
*
|
||||
|
@ -893,7 +893,7 @@ public class AnnotationConfiguration extends Configuration {
|
|||
}
|
||||
catch ( DocumentException e ) {
|
||||
//oops asXML fails even if the core doc parses initially
|
||||
new AssertionFailure("Error in DOM4J leads to a bug in Hibernate", e);
|
||||
throw new AssertionFailure("Error in DOM4J leads to a bug in Hibernate", e);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue