primaryKey
Returns a new
ColumnDefinition.Builder instance, with the primary key index 0.
Note that this renders this column non-null and non-updatable by default, this can be
reverted by setting it as updatable and/or nullable after defining a primary key column.
Country.CODE.as()
.primaryKey()
.caption("Code")
.updatable(true);
- Type Parameters:
B- the builder type- Returns:
- a new
ColumnDefinition.Builderwith primary key index 0 - See Also: