@groovy.transform.AutoClone @groovy.transform.builder.Builder(builderStrategy: SimpleStrategy, prefix: ) @groovy.transform.CompileStatic class JoinTable extends Table
Represents a Join table in Grails mapping. It has a name which represents the name of the table, a key for the primary key and a column which is the other side of the join.
Type | Name and description |
---|---|
ColumnConfig |
column The child id column |
ColumnConfig |
key The foreign key column |
Constructor and description |
---|
JoinTable
() |
Type Params | Return Type | Name and description |
---|---|---|
|
JoinTable |
column(groovy.lang.Closure columnConfig) Configures the column |
|
JoinTable |
column(java.lang.String columnName) Configures the column |
|
JoinTable |
key(groovy.lang.Closure columnConfig) Configures the column |
|
JoinTable |
key(java.lang.String columnName) Configures the column |
Methods inherited from class | Name |
---|---|
class Table |
configureExisting, configureExisting, configureNew |
The child id column
The foreign key column
Configures the column
columnConfig
- The column configConfigures the column
columnName
- the column nameConfigures the column
columnConfig
- The column configConfigures the column
columnName
- the column nameGroovy Documentation