@Retention(value=RUNTIME) @Target(value={METHOD,PARAMETER}) public @interface Field
RecordBuilder annotated constructor
its parameters must be annotated by Field as well.| Modifier and Type | Fields and Description |
|---|---|
static String |
ID
Most used value for the primary key field.
|
static int |
LENGTH
Default field length.
|
static int |
PRECISION
Default precision of BigDecimal field.
|
static int |
SCALE
Default scale of BigDecimal field.
|
| Modifier and Type | Required Element and Description |
|---|---|
String |
value
SQL name of the field.
|
| Modifier and Type | Optional Element and Description |
|---|---|
int |
length
Defines length of the field.
|
boolean |
nullable
Defines if the field can be NULL.
|
int |
precision
Defines PRECISION.
|
boolean |
primaryKey
Defines if the field is a primary key.
|
int |
scale
Defines SCALE.
|
public static final String ID
public abstract String value
public abstract boolean nullable
true if the field can take NULL valuespublic abstract boolean primaryKey
true if the field is a primary keypublic abstract int length
Copyright © 2017, Petr Panteleyev