|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.data.mapping.BasicPersistentEntity<T>
org.springframework.data.document.mongodb.mapping.MongoPersistentEntity<T>
public class MongoPersistentEntity<T>
Mongo specific PersistentEntity
implementation that adds Mongo specific meta-data such as the collection name
and the like.
Field Summary | |
---|---|
protected String |
collection
|
Fields inherited from class org.springframework.data.mapping.BasicPersistentEntity |
---|
associations, idProperty, information, mappingContext, persistentProperties, preferredConstructor, type |
Constructor Summary | |
---|---|
MongoPersistentEntity(org.springframework.data.mapping.model.MappingContext mappingContext,
org.springframework.data.util.TypeInformation typeInformation)
Creates a new MongoPersistentEntity with the given MappingContext and TypeInformation . |
Method Summary | |
---|---|
String |
getCollection()
Returns the collection the entity should be stored in. |
void |
setCollection(String collection)
|
Methods inherited from class org.springframework.data.mapping.BasicPersistentEntity |
---|
addAssociation, addPersistentProperty, afterPropertiesSet, doWithAssociations, doWithProperties, getAssociations, getIdProperty, getMappingContext, getName, getPersistentProperties, getPersistentProperty, getPersistentPropertyNames, getPreferredConstructor, getPropertyInformation, getType, setIdProperty, setPreferredConstructor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String collection
Constructor Detail |
---|
public MongoPersistentEntity(org.springframework.data.mapping.model.MappingContext mappingContext, org.springframework.data.util.TypeInformation typeInformation)
MongoPersistentEntity
with the given MappingContext
and TypeInformation
. Will
default the collection name to the entities simple type name.
mappingContext
- typeInformation
- Method Detail |
---|
public String getCollection()
public void setCollection(String collection)
|
Spring Data Document | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |