Package dev.morphia.annotations
Annotation Type Embedded
-
@Documented @Inherited @Retention(RUNTIME) @Target(TYPE) @Deprecated(since="2.2") public @interface Embedded
Deprecated.It is now possible to use @Entity everywhere. If a type is only for use as an embedded value, no @Id field is necessary.Marks a type as eligible for mapping and embedding in entity types.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
discriminator
Deprecated.String
discriminatorKey
Deprecated.boolean
useDiscriminator
Deprecated.String
value
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Element Detail
-
value
@Deprecated(since="2.0", forRemoval=true) String value
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- unused
- Default:
- "."
-
-
-
discriminatorKey
String discriminatorKey
Deprecated.- Returns:
- the discriminator key to use for this type.
- Default:
- "."
-
-
-
discriminator
String discriminator
Deprecated.- Returns:
- the discriminator value to use for this type.
- Default:
- "."
-
-