*/
+ .clearfix:before,
+ .clearfix:after,
+ .row:before,
+ .row:after {
+ content: '\0020';
+ display: block;
+ overflow: hidden;
+ visibility: hidden;
+ width: 0;
+ height: 0; }
+ .row:after,
+ .clearfix:after {
+ clear: both; }
+ .row,
+ .clearfix {
+ zoom: 1; }
+
+ /* You can also use a
to clear columns */
+ .clear {
+ clear: both;
+ display: block;
+ overflow: hidden;
+ visibility: hidden;
+ width: 0;
+ height: 0;
+ }
+
+
diff --git a/spring-data-neo4j-parent/pom.xml b/spring-data-neo4j-parent/pom.xml
index ff101eb3e..94a10a328 100644
--- a/spring-data-neo4j-parent/pom.xml
+++ b/spring-data-neo4j-parent/pom.xml
@@ -5,7 +5,7 @@
org.springframework.data
spring-data-neo4j-parent
Spring Data Neo4j Parent
-
2.0.0.BUILD-SNAPSHOT
+
2.1.0.BUILD-SNAPSHOT
pom
@@ -124,12 +124,13 @@
1.8.4
1.6.1
3.0.6.RELEASE
-
1.2.0.M2
-
1.5
+
1.2.0.RC1
+
1.6.M02
0.7-SNAPSHOT
1.6.12
-
1.0
-
1.3
+
1.1
+
1.4
+
1.4
@@ -338,6 +339,61 @@
+
+ com.tinkerpop.gremlin
+ gremlin-groovy
+ ${gremlin.version}
+ jar
+
+
+ org.neo4j
+ neo4j
+
+
+ org.neo4j
+ neo4j-ha
+
+
+ org.neo4j
+ neo4j-management
+
+
+
+ com.tinkerpop.blueprints
+ blueprints-sail-graph
+
+
+
+ org.codehaus.groovy.maven
+ gmaven-plugin
+
+
+
+ jline
+ jline
+
+
+
+
+ com.tinkerpop.blueprints
+ blueprints-neo4j-graph
+ ${blueprints.version}
+
+
+ org.neo4j
+ neo4j
+
+
+ org.neo4j
+ neo4j-ha
+
+
+ org.neo4j
+ neo4j-management
+
+
+
+
com.tinkerpop.blueprints
blueprints-core
@@ -352,8 +408,8 @@
- com.tinkerpop
- gremlin
+ com.tinkerpop.gremlin
+ gremlin-groovy
${gremlin.version}
true
@@ -414,7 +470,7 @@
org.neo4j
neo4j-cypher-dsl
- ${neo4j.version}
+ 1.6.M02
]]>
Your project is now set up to work against a remote Neo4j Server.
- The remote REST implementation works for both the Neo4jTemplate as well as the GraphEntities. For traversals
- and Cypher graph queries it is sensible to forward those to the remote endpoint and execute them there instead of
- walking the graph over the wire. RestGraphDatabase already supports that by providing methods that forward
+ For traversals and Cypher and Gremlin graph queries it is sensible to forward those to the remote endpoint and execute them there
+ instead of walking the graph over the wire. SpringRestGraphDatabase already supports that by providing methods that forward
to the remote instance. (e.g. queryEngineFor(), index() and createTraversalDescription()).
- Please use those methods when interacting with a remote server for optimal performance.
+ Please use those methods when interacting with a remote server for optimal performance. Those methods are also
+ used by the Neo4jTemplate and the mapping infrastructure automatically.
diff --git a/src/docbkx/reference/neo4j.xml b/src/docbkx/reference/neo4j.xml
index ce0ec0e27..8ee9197fc 100644
--- a/src/docbkx/reference/neo4j.xml
+++ b/src/docbkx/reference/neo4j.xml
@@ -160,7 +160,8 @@ for (Node foundNode : nodeIndex.get("property","value")) {
"Cypher" which draws from many
sources. It resembles SQL but with an iconic representation of patterns in the graph (concepts drawn from SPARQL).
The Cypher execution engine was written in Scala to leverage the high expressiveness for lazy sequence operations of the language and the
- parser combinator library.
+ parser combinator library. A screencast explaining the possibilities in detail can be found on the
+ Neo4j video site.
Cypher queries always begin with a start set of nodes. Those can be either expressed by their
diff --git a/src/docbkx/reference/attachdetach.png b/src/docbkx/reference/programming-model/attachdetach.png
similarity index 100%
rename from src/docbkx/reference/attachdetach.png
rename to src/docbkx/reference/programming-model/attachdetach.png
diff --git a/src/docbkx/reference/programming-model/repositories.xml b/src/docbkx/reference/programming-model/repositories.xml
index bb254fd7e..260df8412 100644
--- a/src/docbkx/reference/programming-model/repositories.xml
+++ b/src/docbkx/reference/programming-model/repositories.xml
@@ -155,7 +155,7 @@
Cypher examples
- There is a screencast available showing many features of the query language.
+ There is a screencast available showing many features of the query language.
The following examples are taken from the cineasts dataset of the tutorial section.
@@ -190,7 +190,7 @@
name can be split into its semantic parts and converted into a cypher query.
@Indexed fields will be converted into index-lookups of the start clause,
navigation along relationships will be reflected in the match clause properties with operators will end up as expressions in the
- where clause. Order and limiting of the query will by handled by provided Pageable or parameters.
+ where clause. Order and limiting of the query will by handled by provided Pageable or Sort parameters.
The other parameters will be used in the order they appear in the method signature so that should align with the expressions stated in the method name.
diff --git a/src/docbkx/reference/programming-model/template.xml b/src/docbkx/reference/programming-model/template.xml
index 9bad4579b..12b6dd2e4 100644
--- a/src/docbkx/reference/programming-model/template.xml
+++ b/src/docbkx/reference/programming-model/template.xml
@@ -7,7 +7,7 @@
The Neo4jTemplate offers the convenient API of Spring templates for the Neo4j graph
database. The Spring Data Neo4j Object Graph mapping builds upon the core functionality of the
- template to persist objects to the graph and load them in a variety of ways.
+ template to persist objects to the graph and load them in a variety of ways.
The template handles the active mapping mode () transparently.
@@ -17,6 +17,24 @@
+
+ Core-Operations
+
+ Neo4jTemplate provides access to some of the methods of the Neo4j-Core-API directly. So accessing
+ nodes and relationships (getReferenceNode, getNode, getRelationship, getRelationshipBetween),
+ creating nodes and relationships (createNode, createNodeAs, createRelationshipBetween)
+ and deleting them (delete, deleteRelationshipBetween) are supported. It also provides access to
+ the underlying GraphDatabase via getGraphDatabase.
+
+
+
+ Entity-Persistence
+
+ Neo4jTemplate allows to save,find(One/All),countdelete
+ and projectTo entities. It provides the stored type information via getStoredJavaType
+ and can fetch lazy-loaded entities or load them alltogether.
+
+
Result
@@ -26,7 +44,7 @@
ResultConverter<FROM,TO> which takes care of custom conversions. By default most
query methods can already handle conversions from and to: Paths, Nodes, Relationship and GraphEntities
as well as conversions backed by registered ConversionServices. A converted Result<FROM> is an
- Iterable<TO>. Results can be limited to a single value using the
+ Iterable<TO>. Results can be limited to a single value using the
result.single() or result.singleOrNull()
methods. It also offers support for a pure callback function using a Handler<T>.
diff --git a/src/docbkx/reference/programming-model/typerepresentationstrategy.xml b/src/docbkx/reference/programming-model/typerepresentationstrategy.xml
index e4e388f41..fc1fd7e59 100644
--- a/src/docbkx/reference/programming-model/typerepresentationstrategy.xml
+++ b/src/docbkx/reference/programming-model/typerepresentationstrategy.xml
@@ -21,11 +21,9 @@
Stores entity types in the integrated index. Each entity node gets indexed with its type and
- any supertypes that are also@NodeEntity-annotated. The special index used for this
- is called__types__. Additionally, in order to get the type of an entity node, each
- node has a property
- __type__
- with the fully qualified type of that entity.
+ all supertypes that are also @NodeEntity-annotated. The special index used for this
+ is named __types__. Additionally, in order to retrieve the type of an entity node, each
+ node has a property __type__ with the fully qualified type of that entity.
@@ -57,6 +55,12 @@
IndexingRelationshipTypeRepresentationStrategy
+
+ Stores relationship entity types in the integrated index. Each entity relationship gets indexed with its type and
+ all supertypes that are also @RelationshipEntity-annotated. The special index used for this
+ is named __rel_types__. Additionally, in order to retrieve the type of an entity relationship, each
+ relationship has a property __type__ with the fully qualified type of that entity.
+
diff --git a/src/docbkx/springdatagraph.png b/src/docbkx/springdatagraph.png
index 1718b3475..8527a6cf5 100644
Binary files a/src/docbkx/springdatagraph.png and b/src/docbkx/springdatagraph.png differ
diff --git a/src/docbkx/tutorial/domain.png b/src/docbkx/tutorial/domain.png
index 02ba3fa0c..6765c9c8b 100644
Binary files a/src/docbkx/tutorial/domain.png and b/src/docbkx/tutorial/domain.png differ
diff --git a/src/docbkx/tutorial/domain.xml b/src/docbkx/tutorial/domain.xml
index d09d6150e..c5aef2fad 100644
--- a/src/docbkx/tutorial/domain.xml
+++ b/src/docbkx/tutorial/domain.xml
@@ -11,7 +11,7 @@
diff --git a/src/docbkx/tutorial/neo4j-server.xml b/src/docbkx/tutorial/neo4j-server.xml
index 84822be3a..396d78fb9 100644
--- a/src/docbkx/tutorial/neo4j-server.xml
+++ b/src/docbkx/tutorial/neo4j-server.xml
@@ -48,7 +48,7 @@
org.springframework.data
spring-data-neo4j-rest
- 2.0.0.RC1
+ 2.0.0.RELEASE
]]>
diff --git a/src/docbkx/tutorial/neo4j.xml b/src/docbkx/tutorial/neo4j.xml
index d4690abbd..5129504a8 100644
--- a/src/docbkx/tutorial/neo4j.xml
+++ b/src/docbkx/tutorial/neo4j.xml
@@ -40,7 +40,7 @@
org.neo4j
neo4j
- 1.5
+ 1.6.M02
]]>
diff --git a/src/docbkx/tutorial/setup.xml b/src/docbkx/tutorial/setup.xml
index 730265306..87d93cc1b 100644
--- a/src/docbkx/tutorial/setup.xml
+++ b/src/docbkx/tutorial/setup.xml
@@ -32,7 +32,7 @@
Project pom.xml
- 3.0.6.RELEASE
+ 3.0.7.RELEASE
diff --git a/src/docbkx/tutorial/spring-data-neo4j-aj.xml b/src/docbkx/tutorial/spring-data-neo4j-aj.xml
index e78a61d16..d8c5e13b5 100644
--- a/src/docbkx/tutorial/spring-data-neo4j-aj.xml
+++ b/src/docbkx/tutorial/spring-data-neo4j-aj.xml
@@ -26,7 +26,7 @@
org.springframework.data
spring-data-neo4j-aspects
- 2.0.0.RC1
+ 2.0.0.RELEASE
diff --git a/src/docbkx/tutorial/spring-data-neo4j.xml b/src/docbkx/tutorial/spring-data-neo4j.xml
index c8774bb0b..c47398037 100644
--- a/src/docbkx/tutorial/spring-data-neo4j.xml
+++ b/src/docbkx/tutorial/spring-data-neo4j.xml
@@ -21,7 +21,7 @@
org.springframework.data
spring-data-neo4j
- 2.0.0.RC1
+ 2.0.0.RELEASE
]]>