mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
#2359 - Rename plugin api methods with deprecation - Property
This commit is contained in:
1 parent
bc02eeac57
commit
632f04c76b
66 files changed
+265
-193
No files matched your search
+5
-5
@@ -199,9 +199,9 @@ public class ModelBuildPropertyVisitor extends BaseTablePropertyVisitor {
|
||||
MCompoundForeignKey compoundKey = null;
|
||||
if (columns.length > 1) {
|
||||
// compound foreign key
|
||||
String refTable = p.getTargetDescriptor().getBaseTable();
|
||||
String fkName = foreignKeyConstraintName(p.getName());
|
||||
String fkIndex = foreignKeyIndexName(p.getName());
|
||||
String refTable = p.getTargetDescriptor().baseTable();
|
||||
String fkName = foreignKeyConstraintName(p.name());
|
||||
String fkIndex = foreignKeyIndexName(p.name());
|
||||
compoundKey = new MCompoundForeignKey(fkName, refTable, fkIndex);
|
||||
table.addForeignKey(compoundKey);
|
||||
}
|
||||
@@ -253,7 +253,7 @@ public class ModelBuildPropertyVisitor extends BaseTablePropertyVisitor {
|
||||
|
||||
} else {
|
||||
String[] cols = indexSetAdd(toColumnNames(modelColumns));
|
||||
String uqName = uniqueConstraintName(p.getName());
|
||||
String uqName = uniqueConstraintName(p.name());
|
||||
table.addUniqueConstraint(new MCompoundUniqueConstraint(cols, uqName));
|
||||
}
|
||||
}
|
||||
@@ -307,7 +307,7 @@ public class ModelBuildPropertyVisitor extends BaseTablePropertyVisitor {
|
||||
if (checkConstraintValues != null) {
|
||||
if (beanDescriptor.hasInheritance()) {
|
||||
InheritInfo inheritInfo = beanDescriptor.getInheritInfo();
|
||||
inheritInfo.appendCheckConstraintValues(p.getName(), checkConstraintValues);
|
||||
inheritInfo.appendCheckConstraintValues(p.name(), checkConstraintValues);
|
||||
}
|
||||
col.setCheckConstraint(buildCheckConstraint(p.getDbColumn(), checkConstraintValues));
|
||||
col.setCheckConstraintName(checkConstraintName(col.getName()));
|
||||
|
||||
Reference in new issue
Block a user