Package dev.morphia.annotations
Annotation Interface IdField
@Documented
@Inherited
@Retention(RUNTIME)
@Target(TYPE)
@MorphiaExperimental
public @interface IdField
Denotes the ID field on an entity. This field is typically on a parent type outside the current source base and can't be directly
annotated with
Id
Developer note.
This is an experimental item. Its function and presence are subject to change. Feedback on features and usability extremely welcome.
-
Required Element Summary
-
Element Details
-
value
String value- Returns:
- the name of the field to use as the ID field
-