Package dev.morphia.annotations
Annotation Interface Entity
Marks a class as a Morphia entity indicating it should be mapped.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
-
Element Details
-
cap
CappedAt cap- Returns:
- The capped collection configuration options
- Default:
- @dev.morphia.annotations.CappedAt(value=-1L, count=-1L)
-
concern
String concern- Returns:
- The default write concern to use when dealing with this entity
- Default:
- ""
-
discriminator
String discriminator- Returns:
- the discriminator value to use for this type.
- Default:
- "."
-
discriminatorKey
String discriminatorKey- Returns:
- the discriminator key to use for this type.
- Default:
- "."
-
useDiscriminator
boolean useDiscriminator- Returns:
- true if the discriminator for this type should be stored
- Default:
- true
-
value
String value- Returns:
- the collection name to for this entity. Defaults to the class's simple name
- See Also:
- Default:
- "."
-