public abstract class MongoEntity extends BaseEntity<String>
Mango and stored in MongoDB.| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
static Mapping |
ID
Contains the id of the entity.
|
protected static Mango |
mango |
protected static Mongo |
mongo |
mixing, NEW, persistedData, version| Constructor and Description |
|---|
MongoEntity() |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Returns the id of the entity.
|
<E extends BaseEntity<?>,C extends Constraint,Q extends Query<Q,E,C>> |
getMapper()
Provides the
mapper which is used to actually manage the entity. |
protected boolean |
isUnique(Mapping field,
Object value,
Mapping... within)
Determines if the given value in the given field is unique within the given side constraints.
|
protected void |
setId(String id) |
assertUnique, equals, getDescriptor, getIdAsString, getTypeName, getUniqueName, getVersion, hashCode, isAnyMappingChanged, isChanged, isNew, setVersion, toStringis, makeNewInstance, tryAspublic static final Mapping ID
This is declared as null allowed, as the id is generated after the before save checks have been executed.
protected String id
protected static Mongo mongo
protected static Mango mango
protected boolean isUnique(Mapping field, Object value, Mapping... within)
BaseEntityisUnique in class BaseEntity<String>field - the field to checkvalue - the value to be uniquewithin - the side constraints within the value must be uniquepublic <E extends BaseEntity<?>,C extends Constraint,Q extends Query<Q,E,C>> BaseMapper<E,C,Q> getMapper()
BaseEntitymapper which is used to actually manage the entity.getMapper in class BaseEntity<String>E - the entity type of the mapperQ - the query type of the mapperpublic String getId()
BaseEntitygetId in class BaseEntity<String>protected void setId(String id)
Copyright © 2018. All rights reserved.