Search in sources :

Example 1 with IdentityIdGenerator

use of com.github.drinkjava2.jdialects.id.IdentityIdGenerator in project jDialects by drinkjava2.

the class TableModel method identityGenerator.

public void identityGenerator(String column) {
    checkReadOnly();
    DialectException.assureNotEmpty(tableName, "IdGenerator tableName can not be empty");
    DialectException.assureNotEmpty(column, "IdGenerator column can not be empty");
    this.addGenerator(new IdentityIdGenerator(tableName, column));
}
Also used : IdentityIdGenerator(com.github.drinkjava2.jdialects.id.IdentityIdGenerator)

Aggregations

IdentityIdGenerator (com.github.drinkjava2.jdialects.id.IdentityIdGenerator)1