used getNormalName() method instead of name()

This commit is contained in:
IrynaMatveieva 2024-08-08 12:13:02 +03:00
parent c806685734
commit ec1c2e307c

View File

@ -53,7 +53,7 @@ public class EntitiesByNameAndTypeLoader {
throw new IllegalStateException("Unexpected entity type " + entityType.name());
}
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();
}