public class BasicMongoPersistentEntity<T> extends BasicPersistentEntity<T,MongoPersistentProperty> implements MongoPersistentEntity<T>, ApplicationContextAware
MongoPersistentEntity implementation that adds Mongo specific meta-data such as the
collection name and the like.hasIdProperty, hasVersionPropertyhasIdProperty, hasVersionProperty| Constructor and Description |
|---|
BasicMongoPersistentEntity(TypeInformation<T> typeInformation)
Creates a new
BasicMongoPersistentEntity with the given TypeInformation. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCollection()
Returns the collection the entity shall be persisted to.
|
void |
setApplicationContext(ApplicationContext applicationContext) |
addAssociation, addPersistentProperty, doWithAssociations, doWithProperties, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionProperty, verifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoWithAssociations, doWithProperties, getIdProperty, getName, getPersistenceConstructor, getPersistentProperty, getType, getTypeAlias, getTypeInformation, getVersionProperty, hasIdProperty, hasVersionProperty, isConstructorArgument, isIdProperty, isVersionPropertypublic BasicMongoPersistentEntity(TypeInformation<T> typeInformation)
BasicMongoPersistentEntity with the given TypeInformation. Will default the
collection name to the entities simple type name.typeInformation - public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext in interface ApplicationContextAwareBeansExceptionpublic String getCollection()
MongoPersistentEntitygetCollection in interface MongoPersistentEntity<T>Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.