openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r665762 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java
Date Mon, 09 Jun 2008 16:51:55 GMT
Author: mikedd
Date: Mon Jun  9 09:51:55 2008
New Revision: 665762

URL: http://svn.apache.org/viewvc?rev=665762&view=rev
Log:
OPENJPA-629 trim schema name

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java?rev=665762&r1=665761&r2=665762&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/schema/SchemaGenerator.java
Mon Jun  9 09:51:55 2008
@@ -756,7 +756,8 @@
                 seq++;
 
             // find pk table
-            pkSchemaName = fks[i].getPrimaryKeySchemaName();
+            pkSchemaName = 
+                StringUtils.trimToNull(fks[i].getPrimaryKeySchemaName());
             pkTableName = fks[i].getPrimaryKeyTableName();
             if (_log.isTraceEnabled())
                 _log.trace(_loc.get("gen-fk", new Object[]{ name, table,



Mime
View raw message