org.springframework.data.document.mongodb.repository
Interface MongoEntityInformation<T,ID extends java.io.Serializable>

All Superinterfaces:
org.springframework.data.repository.support.EntityInformation<T,ID>, org.springframework.data.repository.support.EntityMetadata<T>
All Known Implementing Classes:
MappingMongoEntityInformation

public interface MongoEntityInformation<T,ID extends java.io.Serializable>
extends org.springframework.data.repository.support.EntityInformation<T,ID>

Mongo specific EntityInformation.

Author:
Oliver Gierke

Method Summary
 java.lang.String getCollectionName()
          Returns the name of the collection the entity shall be persisted to.
 java.lang.String getIdAttribute()
          Returns the attribute that the id will be persisted to.
 
Methods inherited from interface org.springframework.data.repository.support.EntityInformation
getId, getIdType, isNew
 
Methods inherited from interface org.springframework.data.repository.support.EntityMetadata
getJavaType
 

Method Detail

getCollectionName

java.lang.String getCollectionName()
Returns the name of the collection the entity shall be persisted to.

Returns:

getIdAttribute

java.lang.String getIdAttribute()
Returns the attribute that the id will be persisted to.

Returns:


Copyright © 2011. All Rights Reserved.