使用 API SQL 构建器com.healthmarketscience.sqlbuilder
。
DbForeignKeyConstraint constraint = dbTable.foreignKey("fk_" + tableName + "_" + foreignTableName,
columnList.toArray(new String[0]),
foreignTableName,
foreignColumnList.toArray(new String[0]));
如何设置它constraint
以便它执行ON UPDATE CASCADE
和ON DELETE CASCADE
?