Minor formatting changes.

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@525213 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2007-04-03 17:20:01 +00:00
parent 24538f5431
commit 9c25f9bdf5
2 changed files with 6 additions and 7 deletions

View File

@ -441,7 +441,7 @@ public abstract class MappingInfo
if (schema == null) {
schemaName = Schemas.getNewTableSchema((JDBCConfiguration)
repos.getConfiguration());
if(StringUtils.isEmpty(schemaName)) {
if (StringUtils.isEmpty(schemaName)) {
schemaName = _defaultSchemaName;
}
schema = group.getSchema(schemaName);

View File

@ -116,9 +116,8 @@ public class PersistenceMappingDefaults
@Override
public String getTableName(ClassMapping cls, Schema schema) {
String name = "";
if(StringUtils.isNotEmpty(schema.getName())) {
name +=schema.getName() + '.';
if (StringUtils.isNotEmpty(schema.getName())) {
name += schema.getName() + '.';
}
if (cls.getTypeAlias() != null)
@ -126,7 +125,7 @@ public class PersistenceMappingDefaults
else
name += Strings.getClassName(cls.getDescribedType()).replace('$',
'_');
'_');
return name;
}
@ -134,8 +133,8 @@ public class PersistenceMappingDefaults
@Override
public String getTableName(FieldMapping fm, Schema schema) {
String name = "";
if(StringUtils.isNotEmpty(schema.getName())) {
name +=schema.getName() + '.';
if (StringUtils.isNotEmpty(schema.getName())) {
name += schema.getName() + '.';
}
// base name is table of defining type + '_'