@AutoClone @CompileStatic @Builder(builderStrategy: SimpleStrategy, prefix: ) class ColumnConfig extends Object
Defines a column within the mapping.
| Type | Name and description |
|---|---|
String |
commentA comment to apply to the column |
String |
defaultValueThe default value |
String |
enumTypeThe enum type |
Object |
indexThe index, can be either a boolean or a string for the name of the index |
int |
lengthThe length of the column |
String |
nameThe column name |
int |
precisionThe precision of the column |
String |
readA custom read string |
int |
scaleThe scale of the column |
String |
sqlTypeThe SQL type |
boolean |
uniqueWhether the column is unique |
String |
writeA custom write sstring |
| Constructor and description |
|---|
ColumnConfig() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static ColumnConfig |
configureExisting(ColumnConfig property, Closure config)Configures an existing PropertyConfig instance |
|
static ColumnConfig |
configureExisting(ColumnConfig column, Map config)Configures an existing PropertyConfig instance |
|
static ColumnConfig |
configureNew(Closure config)Configures a new PropertyConfig instance |
|
static ColumnConfig |
configureNew(Map config)Configures a new PropertyConfig instance |
|
String |
toString() |
A comment to apply to the column
The default value
The enum type
The index, can be either a boolean or a string for the name of the index
The length of the column
The column name
The precision of the column
A custom read string
The scale of the column
The SQL type
Whether the column is unique
A custom write sstring
Configures an existing PropertyConfig instance
config - The configurationConfigures an existing PropertyConfig instance
config - The configurationConfigures a new PropertyConfig instance
config - The configurationConfigures a new PropertyConfig instance
config - The configurationGroovy Documentation