db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1401998 - in /db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om: JavaFieldAttributeName.java OMForeignKeyTransformer.java
Date Thu, 25 Oct 2012 07:40:02 GMT
Author: tfischer
Date: Thu Oct 25 07:40:02 2012
New Revision: 1401998

URL: http://svn.apache.org/viewvc?rev=1401998&view=rev
Log:
add a default name for the javabenas property name to the field attribute and set it for foreign
keys

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/JavaFieldAttributeName.java
    db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/OMForeignKeyTransformer.java

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/JavaFieldAttributeName.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/JavaFieldAttributeName.java?rev=1401998&r1=1401997&r2=1401998&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/JavaFieldAttributeName.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/JavaFieldAttributeName.java
Thu Oct 25 07:40:02 2012
@@ -60,6 +60,12 @@ public enum JavaFieldAttributeName imple
     GETTER_NAME("getter"),
 
     /**
+     * The name of the javaBean property name
+     * (corresponding to getter/setter name).
+     */
+    PROPERTY_NAME("propertyName"),
+
+    /**
      * In case the field must be initialized on first access,
      * this contains the name of the init method.
      */

Modified: db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/OMForeignKeyTransformer.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/OMForeignKeyTransformer.java?rev=1401998&r1=1401997&r2=1401998&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/OMForeignKeyTransformer.java
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/java/org/apache/torque/templates/transformer/om/OMForeignKeyTransformer.java
Thu Oct 25 07:40:02 2012
@@ -573,6 +573,9 @@ public class OMForeignKeyTransformer
         localFieldElement.setAttribute(
                 JavaFieldAttributeName.FIELD_NAME,
                 localFieldName.toString());
+        localFieldElement.setAttribute(
+                JavaFieldAttributeName.PROPERTY_NAME,
+                getterSetterFieldName.toString());
 
         String fieldType = (String) foreignTable.getAttribute(
                 TableAttributeName.DB_OBJECT_CLASS_NAME);



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message