openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r1379687 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java
Date Sat, 01 Sep 2012 04:13:26 GMT
Author: allee8285
Date: Sat Sep  1 04:13:26 2012
New Revision: 1379687

URL: http://svn.apache.org/viewvc?rev=1379687&view=rev
Log:
OPENJPA-2255 Enable join table id columns to use the column length from the target instead
of hard-coded db specific default column length.

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

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java?rev=1379687&r1=1379686&r2=1379687&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java
Sat Sep  1 04:13:26 2012
@@ -738,7 +738,8 @@ public abstract class MappingInfo
                 type = dict.getPreferredType(otype);
             }
             typeName = given.getTypeName();
-            size = given.getSize();
+            if (given.getSize() > 0)
+                size = given.getSize();
             decimals = given.getDecimalDigits();
 
             // leave this info as the template defaults unless the user



Mime
View raw message