Interface MongoEntityInformation<T,ID>
- All Superinterfaces:
EntityInformation<T,ID>, EntityMetadata<T>
- All Known Implementing Classes:
MappingMongoEntityInformation
Mongo specific
EntityInformation.- Author:
- Oliver Gierke, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescription@Nullable CollationReturn the collation for the entity or null ifnot defined.Returns the name of the collection the entity shall be persisted to.Returns the attribute that the id will be persisted to.default @Nullable ObjectgetVersion(T entity) Returns the version value for the entity or null if the entity is notversioned.default booleanReturns whether the entity defines a specific collation.default booleanReturns whether the entity uses optimistic locking.Methods inherited from interface EntityInformation
getId, getIdType, getRequiredId, isNewMethods inherited from interface EntityMetadata
getJavaType
-
Method Details
-
getCollectionName
String getCollectionName()Returns the name of the collection the entity shall be persisted to.- Returns:
-
getIdAttribute
-
isVersioned
default boolean isVersioned()Returns whether the entity uses optimistic locking.- Returns:
- true if the entity defines a
Versionproperty. - Since:
- 2.2
-
getVersion
-
hasCollation
default boolean hasCollation()Returns whether the entity defines a specific collation.- Returns:
- true if the entity defines a collation.
- Since:
- 2.2
-
getCollation
@Nullable Collation getCollation()Return the collation for the entity or null ifnot defined.- Returns:
- can be null.
- Since:
- 2.2
-