We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac538c6 commit 093fa60Copy full SHA for 093fa60
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/EntityOperations.java
@@ -175,9 +175,12 @@ public String determineCollectionName(@Nullable Class<?> entityClass) {
175
}
176
177
MongoPersistentEntity<?> persistentEntity = context.getPersistentEntity(entityClass);
178
- if(persistentEntity == null) {
179
- throw new MappingException(String.format("Collection name cannot be derived for type %s. Is it a store native type?", entityClass));
+
+ if (persistentEntity == null) {
180
+ throw new MappingException(String.format(
181
+ "Cannot determine collection name from type '%s'. Is it a store native type?", entityClass.getName()));
182
183
184
return persistentEntity.getCollection();
185
186
0 commit comments