Annotation for defining the persistence of a member.
@Target(value={java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD}) @Retention(value=java.lang.annotation.RetentionPolicy.RUNTIME) public @interface Persistent {
public NullValue nullValue ;
public String primaryKey ;
public String column ;
public Extension[] extensions ;
}
Column name where the values are stored for this member.
Table 4.91 column
Parameter |
Description |
return |
the name of the column |
Non-standard extensions for this member.
Table 4.92 extensions
Parameter |
Description |
return |
the non-standard extensions |
Behavior when this member contains a null value.
Table 4.93 nullValue
Parameter |
Description |
return |
the behavior when this member contains a null value |
Whether this member is part of the primary key for the table.
This is equivalent to specifying @PrimaryKey as a separate
annotation on the member.
Table 4.94 primaryKey
Parameter |
Description |
return |
whether this member is part of the primary key |