#323 - DDL Generation support for foreign key cascade options

Tidy up, no GLOBAL_DEFAULT.
This commit is contained in:
Rob Bygrave
2018-02-21 11:04:04 +13:00
parent eaa48468cd
commit 83384c6f0e
3 changed files with 4 additions and 4 deletions
@@ -389,7 +389,7 @@ public class PlatformDdl {
}
protected ConstraintMode withDefault(ConstraintMode mode) {
return (mode == null || mode == ConstraintMode.GLOBAL_DEFAULT) ? ConstraintMode.RESTRICT : mode;
return (mode == null) ? ConstraintMode.RESTRICT : mode;
}
protected void appendForeignKeyOnDelete(StringBuilder buffer, ConstraintMode mode) {
@@ -16,8 +16,8 @@ public class PropertyForeignKey {
public PropertyForeignKey() {
this.noConstraint = true;
this.noIndex = false;
this.onDelete = ConstraintMode.GLOBAL_DEFAULT;
this.onUpdate = ConstraintMode.GLOBAL_DEFAULT;
this.onDelete = ConstraintMode.RESTRICT;
this.onUpdate = ConstraintMode.RESTRICT;
}
/**