cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1053048 - in /cayenne/sandbox/cayenne-mixin/trunk: pom.xml src/main/java/org/apache/cayenne/mixin/changeset/GenericChangeSet.java
Date Mon, 27 Dec 2010 11:49:20 GMT
Author: aadamchik
Date: Mon Dec 27 11:49:20 2010
New Revision: 1053048

URL: http://svn.apache.org/viewvc?rev=1053048&view=rev
Log:
recording relationship changes in the changeset

Modified:
    cayenne/sandbox/cayenne-mixin/trunk/pom.xml
    cayenne/sandbox/cayenne-mixin/trunk/src/main/java/org/apache/cayenne/mixin/changeset/GenericChangeSet.java

Modified: cayenne/sandbox/cayenne-mixin/trunk/pom.xml
URL: http://svn.apache.org/viewvc/cayenne/sandbox/cayenne-mixin/trunk/pom.xml?rev=1053048&r1=1053047&r2=1053048&view=diff
==============================================================================
--- cayenne/sandbox/cayenne-mixin/trunk/pom.xml (original)
+++ cayenne/sandbox/cayenne-mixin/trunk/pom.xml Mon Dec 27 11:49:20 2010
@@ -8,7 +8,7 @@
 		<version>3.1M1</version>
 	</parent>
 	<artifactId>cayenne-mixin</artifactId>
-	<version>3.1.0.11</version>
+	<version>3.1.0.12</version>
 	<name>Library: cayenne-mixin</name>
 	<packaging>jar</packaging>
 	<properties>

Modified: cayenne/sandbox/cayenne-mixin/trunk/src/main/java/org/apache/cayenne/mixin/changeset/GenericChangeSet.java
URL: http://svn.apache.org/viewvc/cayenne/sandbox/cayenne-mixin/trunk/src/main/java/org/apache/cayenne/mixin/changeset/GenericChangeSet.java?rev=1053048&r1=1053047&r2=1053048&view=diff
==============================================================================
--- cayenne/sandbox/cayenne-mixin/trunk/src/main/java/org/apache/cayenne/mixin/changeset/GenericChangeSet.java
(original)
+++ cayenne/sandbox/cayenne-mixin/trunk/src/main/java/org/apache/cayenne/mixin/changeset/GenericChangeSet.java
Mon Dec 27 11:49:20 2010
@@ -99,12 +99,16 @@ public class GenericChangeSet implements
 
             @Override
             public void arcDeleted(Object nodeId, Object targetNodeId, Object arcId) {
-                // noop... ignoring for now... ideally should at least track to-one
+                // record the fact of relationship change... TODO: analyze relationship
+                // semantics and record changset values
+                getChange(nodeId, (String) arcId, null);
             }
 
             @Override
             public void arcCreated(Object nodeId, Object targetNodeId, Object arcId) {
-                // noop... ignoring for now... ideally should at least track to-one
+                // record the fact of relationship change... TODO: analyze relationship
+                // semantics and record changset values
+                getChange(nodeId, (String) arcId, null);
             }
 
             @Override



Mime
View raw message