public interface MongoEntityInformation<T,ID> extends EntityInformation<T,ID>
EntityInformation.| Modifier and Type | Method and Description |
|---|---|
String |
getCollectionName()
Returns the name of the collection the entity shall be persisted to.
|
String |
getIdAttribute()
Returns the attribute that the id will be persisted to.
|
default Object |
getVersion(T entity)
Returns the version value for the entity or null if the entity is not
versioned. |
default boolean |
isVersioned()
Returns whether the entity uses optimistic locking.
|
getId, getIdType, getRequiredId, isNewgetJavaTypeString getCollectionName()
String getIdAttribute()
default boolean isVersioned()
Version property.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.