openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p..@apache.org
Subject svn commit: r525213 - in /incubator/openjpa/trunk: openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingDefaults.java
Date Tue, 03 Apr 2007 17:20:01 GMT
Author: pcl
Date: Tue Apr  3 10:20:01 2007
New Revision: 525213

URL: http://svn.apache.org/viewvc?view=rev&rev=525213
Log:
Minor formatting changes.

Modified:
    incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java
    incubator/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingDefaults.java

Modified: incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java?view=diff&rev=525213&r1=525212&r2=525213
==============================================================================
--- incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java
(original)
+++ incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java
Tue Apr  3 10:20:01 2007
@@ -441,7 +441,7 @@
             if (schema == null) {
                 schemaName = Schemas.getNewTableSchema((JDBCConfiguration)
                     repos.getConfiguration());
-                if(StringUtils.isEmpty(schemaName)) { 
+                if (StringUtils.isEmpty(schemaName)) { 
                    schemaName = _defaultSchemaName;
                 }
                 schema = group.getSchema(schemaName);

Modified: incubator/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingDefaults.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingDefaults.java?view=diff&rev=525213&r1=525212&r2=525213
==============================================================================
--- incubator/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingDefaults.java
(original)
+++ incubator/openjpa/trunk/openjpa-persistence-jdbc/src/main/java/org/apache/openjpa/persistence/jdbc/PersistenceMappingDefaults.java
Tue Apr  3 10:20:01 2007
@@ -116,9 +116,8 @@
     @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 @@
         
         else
             name += Strings.getClassName(cls.getDescribedType()).replace('$',
-                    '_');
+                '_');
         
         return name;
     }
@@ -134,8 +133,8 @@
     @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 + '_'



Mime
View raw message