From f6574a4b5d79859b31eb7cdd2487c96fa1f5dbcf Mon Sep 17 00:00:00 2001 From: David Montag Date: Mon, 18 Apr 2011 12:25:22 -0700 Subject: [PATCH 1/5] Updated README --- README.textile | 116 ++++++++++++++++++++++++++----------------------- 1 file changed, 62 insertions(+), 54 deletions(-) diff --git a/README.textile b/README.textile index 1fb0f2311..5fae5730f 100644 --- a/README.textile +++ b/README.textile @@ -6,70 +6,78 @@ The Spring Data Graph project provides a simplified POJO based programming model h2. Maven configuration -* Add the maven repository and dependency +* Add the maven repository and dependency:
-
-    org.springframework.data
-    spring-data-neo4j
-    1.0.0.RELEASE
-
-
-    spring-maven-snapshot
-    true
-    Springframework Maven MILESTONE Repository
-    http://maven.springframework.org/milestone
-
+
+    
+        org.springframework.data
+        spring-data-neo4j
+        1.0.0.RELEASE
+    
+
+
+    
+        spring-maven-snapshot
+        true
+        Springframework Maven MILESTONE Repository
+        http://maven.springframework.org/milestone
+    
+
 
-* Configure AspectJ: Add the following plugin XML to your project's config in pom.xml to hook AspectJ into the build process: +* Configure AspectJ: Include the following plugin XML in your pom.xml to hook AspectJ into the build process:
-
-    org.codehaus.mojo
-    aspectj-maven-plugin
-    1.0
-    
-        true
-        
-            
-                org.springframework
-                spring-aspects
-            
-            
-                org.springframework.data
-                spring-data-neo4j
-            
-        
-        1.6
-        1.6
-    
-    
-        
-            
-                compile
-                test-compile
-            
-        
-    
-    
-        
-            org.aspectj
-            aspectjrt
-            1.6.11.RELEASE
-        
-        
-            org.aspectj
-            aspectjtools
-            1.6.11.RELEASE
-        
-    
-
+
+    
+        
+            org.codehaus.mojo
+            aspectj-maven-plugin
+            1.0
+            
+                true
+                
+                    
+                        org.springframework
+                        spring-aspects
+                    
+                    
+                        org.springframework.data
+                        spring-data-neo4j
+                    
+                
+                1.6
+                1.6
+            
+            
+                
+                    
+                        compile
+                        test-compile
+                    
+                
+            
+            
+                
+                    org.aspectj
+                    aspectjrt
+                    1.6.11.RELEASE
+                
+                
+                    org.aspectj
+                    aspectjtools
+                    1.6.11.RELEASE
+                
+            
+        
+    
+
 
h2. Spring configuration -* Configure Spring Data Graph for Neo4j in your application using the provided xml namespace. +* Configure Spring Data Graph for Neo4j in your application using the provided XML namespace:
 

From f3dc8e52044479dc9e7a9741b7f16b17106204af Mon Sep 17 00:00:00 2001
From: David Montag 
Date: Mon, 18 Apr 2011 12:40:59 -0700
Subject: [PATCH 2/5] Added note about accessing fields in non-persisted
 entities.

---
 .../reference/programming-model/relationships.xml     | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/docbkx/reference/programming-model/relationships.xml b/src/docbkx/reference/programming-model/relationships.xml
index 4f89d62ec..5e976aba4 100644
--- a/src/docbkx/reference/programming-model/relationships.xml
+++ b/src/docbkx/reference/programming-model/relationships.xml
@@ -60,10 +60,19 @@ public class Actor {
             relationship of a given type between any two given entities.
         
         
+            
+                Before an entity has been attached with persist() for the first time, it will
+                not have its state managed by Spring Data Graph. For example, given the Actor class defined above,
+                if actor.movies was accessed in a non-persisted entity, it would return
+                null, whereas if it was accessed in a persisted entity, it would return
+                an empty managed set.
+            
+        
+        
             By setting direction to BOTH, relationships are created in the outgoing direction, but when the
             1:N field is read, it will include relationships in both directions. A cardinality of M:N is
             not necessary because relationships can be navigated in both directions.
-        
+        
         
             The relationships can also be accessed by using the aspect-introduced methods
             entity.getRelationshipTo(target, type) and

From f12839018eedb64bda38ae9ce29586bb3f9e655d Mon Sep 17 00:00:00 2001
From: Thomas Risberg 
Date: Mon, 18 Apr 2011 16:03:28 -0400
Subject: [PATCH 3/5] added some color to the html programlistings

---
 src/docbkx/resources/css/html.css | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/docbkx/resources/css/html.css b/src/docbkx/resources/css/html.css
index 10936f337..994a3acfb 100644
--- a/src/docbkx/resources/css/html.css
+++ b/src/docbkx/resources/css/html.css
@@ -1,3 +1,5 @@
+@IMPORT url("highlight.css");
+
 body {
     text-align: justify;
     margin-right: 2em;

From d3f8516a08361c8e7ae01355a27a51855e220ea3 Mon Sep 17 00:00:00 2001
From: Thomas Risberg 
Date: Mon, 18 Apr 2011 16:09:39 -0400
Subject: [PATCH 4/5] adding release repositories

---
 pom.xml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/pom.xml b/pom.xml
index 8b147f149..6e931ec87 100644
--- a/pom.xml
+++ b/pom.xml
@@ -122,6 +122,10 @@
 					spring-site-staging
 					file:///${java.io.tmpdir}/spring-data/data-graph/docs/${project.version}
 				
+				
+					spring-release-staging
+					file:///${java.io.tmpdir}/spring-data/data-graph/release
+				
 				
 					spring-milestone-staging
 					file:///${java.io.tmpdir}/spring-data/data-graph/milestone
@@ -140,6 +144,11 @@
 			static.springframework.org
 			scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-data/data-graph/snapshot-site/
 		
+		
+			spring-release
+			Spring Release Repository
+			s3://maven.springframework.org/release
+		
 		
 			spring-milestone
 			Spring Milestone Repository

From c8f378d3a5418a88e44c0545edd710349d246b9d Mon Sep 17 00:00:00 2001
From: Thomas Risberg 
Date: Mon, 18 Apr 2011 16:20:47 -0400
Subject: [PATCH 5/5] adding release repositories

---
 pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 6e931ec87..6a50144f0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -122,10 +122,10 @@
 					spring-site-staging
 					file:///${java.io.tmpdir}/spring-data/data-graph/docs/${project.version}
 				
-				
+				
 				
 					spring-milestone-staging
 					file:///${java.io.tmpdir}/spring-data/data-graph/milestone
@@ -144,11 +144,11 @@
 			static.springframework.org
 			scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-data/data-graph/snapshot-site/
 		
-		
+		
 		
 			spring-milestone
 			Spring Milestone Repository