We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 018fe62 commit 26554e3Copy full SHA for 26554e3
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/EntityOperations.java
@@ -139,9 +139,12 @@ public String determineCollectionName(@Nullable Class<?> entityClass) {
139
}
140
141
MongoPersistentEntity<?> persistentEntity = context.getPersistentEntity(entityClass);
142
- if(persistentEntity == null) {
143
- throw new MappingException(String.format("Collection name cannot be derived for type %s. Is it a store native type?", entityClass));
+
+ if (persistentEntity == null) {
144
+ throw new MappingException(String.format(
145
+ "Cannot determine collection name from type '%s'. Is it a store native type?", entityClass.getName()));
146
147
148
return persistentEntity.getCollection();
149
150
0 commit comments