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.
Employee.ID.define()
.primaryKey()
.nullable(true)
.updatable(true)
- Type Parameters:
B
- the builder type- Returns:
- a new
ColumnDefinition.Builder
with primary key index 0 - See Also: