mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - code cleanup - BeanFkeyProperty
This commit is contained in:
@@ -18,8 +18,8 @@ public final class BeanFkeyProperty implements ElPropertyValue {
|
||||
|
||||
private final int deployOrder;
|
||||
|
||||
public BeanFkeyProperty(String prefix, String name, String dbColumn, int deployOrder) {
|
||||
this(prefix, name, dbColumn, deployOrder, false);
|
||||
public BeanFkeyProperty(String name, String dbColumn, int deployOrder) {
|
||||
this(null, name, dbColumn, deployOrder, false);
|
||||
}
|
||||
|
||||
private BeanFkeyProperty(String prefix, String name, String dbColumn, int deployOrder, boolean containsMany) {
|
||||
@@ -68,13 +68,6 @@ public final class BeanFkeyProperty implements ElPropertyValue {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Only usable as ElPropertyDeploy.
|
||||
*/
|
||||
public boolean isDeployOnly() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean containsFormulaWithJoin() {
|
||||
return false;
|
||||
|
||||
@@ -37,7 +37,7 @@ public class ImportedIdEmbedded implements ImportedId {
|
||||
|
||||
for (int i = 0; i < imported.length; i++) {
|
||||
String n = name+"."+foreignAssocOne.getName()+"."+embeddedProps[i].getName();
|
||||
BeanFkeyProperty fkey = new BeanFkeyProperty(null, n, imported[i].localDbColumn, foreignAssocOne.getDeployOrder());
|
||||
BeanFkeyProperty fkey = new BeanFkeyProperty(n, imported[i].localDbColumn, foreignAssocOne.getDeployOrder());
|
||||
owner.getBeanDescriptor().add(fkey);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ public final class ImportedIdSimple implements ImportedId, Comparable<ImportedId
|
||||
}
|
||||
|
||||
public void addFkeys(String name) {
|
||||
BeanFkeyProperty fkey = new BeanFkeyProperty(null, name+"."+foreignProperty.getName(), localDbColumn, owner.getDeployOrder());
|
||||
BeanFkeyProperty fkey = new BeanFkeyProperty(name+"."+foreignProperty.getName(), localDbColumn, owner.getDeployOrder());
|
||||
owner.getBeanDescriptor().add(fkey);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user