db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r685048 - /db/ddlutils/trunk/src/main/java/org/apache/ddlutils/model/CloneHelper.java
Date Tue, 12 Aug 2008 06:09:29 GMT
Author: tomdz
Date: Mon Aug 11 23:09:28 2008
New Revision: 685048

URL: http://svn.apache.org/viewvc?rev=685048&view=rev
Log:
Fix for DDLUTILS-223: CloneHelper does not clone onDelete or onUpdate on ForeignKey objects

Modified:
    db/ddlutils/trunk/src/main/java/org/apache/ddlutils/model/CloneHelper.java

Modified: db/ddlutils/trunk/src/main/java/org/apache/ddlutils/model/CloneHelper.java
URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/main/java/org/apache/ddlutils/model/CloneHelper.java?rev=685048&r1=685047&r2=685048&view=diff
==============================================================================
--- db/ddlutils/trunk/src/main/java/org/apache/ddlutils/model/CloneHelper.java (original)
+++ db/ddlutils/trunk/src/main/java/org/apache/ddlutils/model/CloneHelper.java Mon Aug 11
23:09:28 2008
@@ -189,6 +189,8 @@
         result.setName(source.getName());
         result.setForeignTable(foreignTable);
         result.setAutoIndexPresent(source.isAutoIndexPresent());
+        result.setOnDelete(source.getOnDelete());
+        result.setOnUpdate(source.getOnUpdate());
 
         for (int refIdx = 0; refIdx < source.getReferenceCount(); refIdx++)
         {



Mime
View raw message