Annotation Interface Persistent
Persistent fields and methods are annotated with this annotation.
Allows examining the model by reflection from within the persistence layer.
- Author:
- harald
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionOptional comment.booleanReturns whether this is a component of the PDO.
This is true for all members/attributes and component relations.booleanReturns whether this is the relation to an embedded entity.
The columns of an embedded entity live in the owner's table.intGets the ordinal according to the model.
Used to order the attributes and relations when analyzed via reflection.booleanReturns whether this is the relation to the parent PDO.
The parent PDO provides a composite relation to this PDO.
-
Element Details
-
comment
-
component
boolean componentReturns whether this is a component of the PDO.
This is true for all members/attributes and component relations. It is false for all non-component relations.- Returns:
- true if this is a component, false if a non-component relation
- Default:
true
-
parent
boolean parentReturns whether this is the relation to the parent PDO.
The parent PDO provides a composite relation to this PDO.- Returns:
- true if this is a component and the annotated relation points to the component's parent.
- Default:
false
-
embedded
boolean embeddedReturns whether this is the relation to an embedded entity.
The columns of an embedded entity live in the owner's table.- Returns:
- true if this is an embedded entity
- Default:
false
-
ordinal
int ordinalGets the ordinal according to the model.
Used to order the attributes and relations when analyzed via reflection.- Returns:
- the ordinal, 0 if no ordinal available
- Default:
0
-