Package dev.morphia.annotations
Annotation Type Entity
-
@Documented @Inherited @Retention(RUNTIME) @Target(TYPE) public @interface Entity
Marks a class as a Morphia entity indicating it should be mapped.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description CappedAt
cap
String
concern
String
discriminator
String
discriminatorKey
boolean
useDiscriminator
String
value
-
-
-
Element Detail
-
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:
- "."
-
-
-
value
String value
- Returns:
- the collection name to for this entity. Defaults to the class's simple name
- See Also:
Class.getSimpleName()
- Default:
- "."
-
-