You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2008/01/05 18:18:58 UTC

svn commit: r609177 - /cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/bridge/DataMapConverter.java

Author: aadamchik
Date: Sat Jan  5 09:18:57 2008
New Revision: 609177

URL: http://svn.apache.org/viewvc?rev=609177&view=rev
Log:
JPA: fixing processing @PrimaryKeyJoinColumn defaults

Modified:
    cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/bridge/DataMapConverter.java

Modified: cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/bridge/DataMapConverter.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/bridge/DataMapConverter.java?rev=609177&r1=609176&r2=609177&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/bridge/DataMapConverter.java (original)
+++ cayenne/main/trunk/framework/cayenne-jpa-unpublished/src/main/java/org/apache/cayenne/jpa/bridge/DataMapConverter.java Sat Jan  5 09:18:57 2008
@@ -759,6 +759,8 @@
                     attribute.setMandatory(true);
                     attribute.setAttributePrecision(pkAttribute.getAttributePrecision());
                     attribute.setType(pkAttribute.getType());
+                    attribute.setMaxLength(pkAttribute.getMaxLength());
+                    attribute.setAttributePrecision(pkAttribute.getAttributePrecision());
                     cayenneSecondaryTable.addAttribute(attribute);
 
                     DbJoin join = new DbJoin(dbRelationship, column