@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 |
columnThe child id column |
java.util.List<ColumnConfig> |
keysThe foreign key columns (composite key support) |
| Properties inherited from class | Properties |
|---|---|
class Table |
catalog, name, schema |
| 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 |
|
JoinTable |
keys(java.util.List names)Configures the keys |
|
void |
setKeys(java.util.List<ColumnConfig> keys) |
| Methods inherited from class | Name |
|---|---|
class Table |
configureExisting, configureExisting, configureNew |
The child id column
The foreign key columns (composite key support)
Configures the column
columnConfig - The column configConfigures the column
columnName - the column nameConfigures the column
columnConfig - The column configConfigures the column
columnName - the column nameConfigures the keys
names - The key names