DATAKV-297 - Polishing.

Fix typo in exception message.
This commit is contained in:
Mark Paluch
2020-09-30 14:23:08 +02:00
parent 6157b389cf
commit e8cdd00ff1

View File

@@ -59,7 +59,9 @@ enum DefaultIdentifierGenerator implements IdentifierGenerator {
return (T) Long.valueOf(getSecureRandom().nextLong());
}
throw new InvalidDataAccessApiUsageException("Non gereratable id type....");
throw new InvalidDataAccessApiUsageException(
String.format("Identifier cannot be generated for %s. Supported types are: UUID, String, Integer, and Long.",
identifierType.getType().getName()));
}
private SecureRandom getSecureRandom() {