|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.data.document.mongodb.mapping.BasicMongoPersistentEntity<T>
public class BasicMongoPersistentEntity<T>
Mongo specific PersistentEntity
implementation that adds Mongo specific meta-data such as the collection name
and the like.
Field Summary | |
---|---|
private java.lang.String |
collection
|
private boolean |
isRootEntity
|
Constructor Summary | |
---|---|
BasicMongoPersistentEntity(
Creates a new BasicMongoPersistentEntity with the given TypeInformation . |
Method Summary | |
---|---|
java.lang.String |
getCollection()
Returns the collection the entity should be stored in. |
void |
verify()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.lang.String collection
private final boolean isRootEntity
Constructor Detail |
---|
public BasicMongoPersistentEntity(typeInformation)
BasicMongoPersistentEntity
with the given TypeInformation
. Will default the
collection name to the entities simple type name.
typeInformation
- Method Detail |
---|
public java.lang.String getCollection()
getCollection
in interface MongoPersistentEntity<T>
public void verify()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |