mirror of https://github.com/apache/openjpa.git
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:
parent
24538f5431
commit
9c25f9bdf5
|
@ -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);
|
||||
|
|
|
@ -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 + '_'
|
||||
|
|
Loading…
Reference in New Issue