Annotation Type | Description |
---|---|
AlsoLoad |
Annotation which helps migrate schemas by loading one of several possible properties in the document into fields or methods.
|
CappedAt |
Properties for capped collections; used in
Entity |
ConstructorArgs |
Indicates that this field can be constructed from the stored fields; it doesn't require a no-args constructor.
|
Converters |
Declares converters required for this entity/class; converters are registered globally at time of the meta-data discovery.
|
Embedded | |
Entity |
Allows marking and naming the collectionName
|
EntityListeners |
Specifies other classes to participate in the @Entity's lifecycle
|
Id | |
Index |
Defines an index
|
Indexed |
Specified on fields that should be Indexed.
|
Indexes |
Defines indexes for this entity type (on the collection)
|
NotSaved |
When placed on an entity field, the field will not be written to mongodb.
|
Polymorphic |
Specifies that this class is part of an inheritance structure.
|
PostLoad |
Called after the data has been loaded into the java object.
|
PostPersist |
Called after the data has been persisted from the java object.
|
PreLoad |
Called before the data has been loaded from the datastore.
|
PrePersist |
Called before the data has been persisted to the datastore (before mapping is done).
|
PreSave |
Called right before DBCollection.save() is called.
|
Property |
Optional annotation for specifying persistence behavior
|
Reference | |
Serialized |
Marker for fields that should be (java) serialized
|
Transient | |
Version |
supposed to be used on a Long or long field for optimistic locking.
|
Copyright © 2013. All Rights Reserved.