(cherry picked from commit 8535adc057
)
This commit is contained in:
parent
b53ce90255
commit
7e73de1cc9
|
@ -386,7 +386,7 @@ public abstract class AbstractPropertyMapping implements PropertyMapping {
|
|||
}
|
||||
}
|
||||
|
||||
if ( idPropName != null ) {
|
||||
if ( (! etype.isNullable() ) && idPropName != null ) {
|
||||
String idpath2 = extendPath( path, idPropName );
|
||||
addPropertyPath( idpath2, idtype, columns, columnReaders, columnReaderTemplates, null, factory );
|
||||
initPropertyPaths( idpath2, idtype, columns, columnReaders, columnReaderTemplates, null, factory );
|
||||
|
|
|
@ -659,7 +659,7 @@ public abstract class EntityType extends AbstractType implements AssociationType
|
|||
}
|
||||
}
|
||||
|
||||
protected abstract boolean isNullable();
|
||||
public abstract boolean isNullable();
|
||||
|
||||
/**
|
||||
* Resolve an identifier via a load.
|
||||
|
|
|
@ -109,7 +109,7 @@ public class ManyToOneType extends EntityType {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected boolean isNullable() {
|
||||
public boolean isNullable() {
|
||||
return ignoreNotFound;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue