mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-13 22:54:51 +00:00
HHH-15354 Throw MappingException instead of NPE for hbm referencing unmapped class
This commit is contained in:
parent
48e3bf8381
commit
a8318fdfb9
@ -165,6 +165,9 @@ public void setSorted(boolean sorted) {
|
||||
@Override
|
||||
public int[] sortProperties() {
|
||||
final PersistentClass entityBinding = getMetadata().getEntityBinding( getReferencedEntityName() );
|
||||
if ( entityBinding == null ) {
|
||||
return null;
|
||||
}
|
||||
final Value value;
|
||||
if ( getReferencedPropertyName() == null ) {
|
||||
value = entityBinding.getIdentifier();
|
||||
|
Loading…
x
Reference in New Issue
Block a user