|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface Column
Optional annotation defining a column mapping for a property on the class. This annotation can appear on the class field, getter or setter.
Optional Element Summary | |
---|---|
boolean |
generated
Indicates if the column is generated in the database - like an auto increment field. |
boolean |
hasDefault
Indicates that this column has a default value in the database. |
boolean |
primary
Indicates that this column is a primary key. |
java.lang.String |
value
Name of the column mapped to the property. |
public abstract java.lang.String value
It's only required if Persism cannot discover the column/property mapping on its own.
public abstract boolean generated
It's only required if Persism cannot detect this column attribute on its own.
public abstract boolean primary
It's only required if Persism cannot detect this column attribute on its own.
public abstract boolean hasDefault
It's only required if Persism cannot detect this column attribute on its own.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |