Spring Data Document

org.springframework.data.mongodb.repository.query
Interface MongoEntityInformation<T,ID extends Serializable>

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

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

Mongo specific EntityInformation.

Author:
Oliver Gierke

Method Summary
 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.
 
Methods inherited from interface org.springframework.data.repository.core.EntityInformation
getId, getIdType, isNew
 
Methods inherited from interface org.springframework.data.repository.core.EntityMetadata
getJavaType
 

Method Detail

getCollectionName

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

Returns:

getIdAttribute

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

Returns:

Spring Data Document

Copyright © 2012. All Rights Reserved.