mirror of https://github.com/apache/openjpa.git
Quick formatting fix (add braces)
modified: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@791908 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5283bcd77d
commit
9f62d5ebfa
|
@ -1490,14 +1490,17 @@ public abstract class MappingInfo
|
||||||
// if one primary key column use it for target; if multiple joins
|
// if one primary key column use it for target; if multiple joins
|
||||||
// look for a foreign column with same name as local column
|
// look for a foreign column with same name as local column
|
||||||
PrimaryKey pk = foreign.getPrimaryKey();
|
PrimaryKey pk = foreign.getPrimaryKey();
|
||||||
if (joins.length == 1 && pk != null && pk.getColumns().length == 1)
|
if (joins.length == 1 && pk != null && pk.getColumns().length == 1) {
|
||||||
targetName = pk.getColumns()[0].getName();
|
targetName = pk.getColumns()[0].getName();
|
||||||
else if (foreign.getColumn(name) != null)
|
}
|
||||||
|
else if (foreign.getColumn(name) != null) {
|
||||||
targetName = name;
|
targetName = name;
|
||||||
else
|
}
|
||||||
|
else {
|
||||||
throw new MetaDataException(_loc.get(prefix
|
throw new MetaDataException(_loc.get(prefix
|
||||||
+ "-no-fkcol-target-adapt", context, name));
|
+ "-no-fkcol-target-adapt", context, name));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// find the target column, and create template for local column based
|
// find the target column, and create template for local column based
|
||||||
// on it
|
// on it
|
||||||
|
|
Loading…
Reference in New Issue