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:
Michael Dick 2009-07-07 16:58:08 +00:00
parent 5283bcd77d
commit 9f62d5ebfa
1 changed files with 6 additions and 3 deletions

View File

@ -1490,13 +1490,16 @@ public abstract class MappingInfo
// if one primary key column use it for target; if multiple joins
// look for a foreign column with same name as local column
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();
else if (foreign.getColumn(name) != null)
}
else if (foreign.getColumn(name) != null) {
targetName = name;
else
}
else {
throw new MetaDataException(_loc.get(prefix
+ "-no-fkcol-target-adapt", context, name));
}
}
// find the target column, and create template for local column based