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.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
-
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
-