db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1377474 - /db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/peer/impl/base/constructor.vm
Date Sun, 26 Aug 2012 18:24:01 GMT
Author: tv
Date: Sun Aug 26 18:24:00 2012
New Revision: 1377474

URL: http://svn.apache.org/viewvc?rev=1377474&view=rev
Log:
Avoid code duplication

Modified:
    db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/peer/impl/base/constructor.vm

Modified: db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/peer/impl/base/constructor.vm
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/peer/impl/base/constructor.vm?rev=1377474&r1=1377473&r2=1377474&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/peer/impl/base/constructor.vm
(original)
+++ db/torque/torque4/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/templates/peer/impl/base/constructor.vm
Sun Aug 26 18:24:00 2012
@@ -34,9 +34,9 @@
      */
     public ${basePeerImplClassName}()
     {
-        setRecordMapper(new $recordMapperClassName());
-        setTableMap(${peerClassName}.TABLE);
-        setDatabaseName(${peerClassName}.DATABASE_NAME);
+        this(new $recordMapperClassName(),
+            ${peerClassName}.TABLE,
+            ${peerClassName}.DATABASE_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