used getNormalName() method instead of name()
This commit is contained in:
parent
c806685734
commit
ec1c2e307c
@ -53,7 +53,7 @@ public class EntitiesByNameAndTypeLoader {
|
|||||||
throw new IllegalStateException("Unexpected entity type " + entityType.name());
|
throw new IllegalStateException("Unexpected entity type " + entityType.name());
|
||||||
}
|
}
|
||||||
if (targetEntity == null) {
|
if (targetEntity == null) {
|
||||||
throw new IllegalStateException("Failed to found " + entityType.name().toLowerCase() + " with name '" + entityName + "'!");
|
throw new IllegalStateException("Failed to found " + entityType.getNormalName().toLowerCase() + " with name '" + entityName + "'!");
|
||||||
}
|
}
|
||||||
return targetEntity.getId();
|
return targetEntity.getId();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user