diff --git a/changelog.txt b/changelog.txt index 89b3a87ca..c2433dd16 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,13 @@ Spring Data Graph Changelog =========================== +Changes in version 1.1.0.RELEASE (2011-08-04) +--------------------------------------------- +* documentation updates +* fixed package name in NamespaceHandler declaration +* cypher, gremlin as optional dependencies +* + Changes in version 1.1.0.RC1 (2011-07-25) ----------------------------------------- * Added Gremlin support (embedded & REST) diff --git a/spring-data-graph-parent/pom.xml b/spring-data-graph-parent/pom.xml index b8b061657..421849b23 100644 --- a/spring-data-graph-parent/pom.xml +++ b/spring-data-graph-parent/pom.xml @@ -233,7 +233,14 @@ org.neo4j neo4j ${neo4j.version} + + + org.neo4j + neo4j-cypher + + + org.neo4j neo4j-kernel @@ -247,6 +254,12 @@ ${neo4j.version} provided + + org.neo4j + neo4j-cypher + ${neo4j.version} + true + commons-configuration commons-configuration diff --git a/spring-data-neo4j-rest/pom.xml b/spring-data-neo4j-rest/pom.xml index a695d3384..5d815e761 100644 --- a/spring-data-neo4j-rest/pom.xml +++ b/spring-data-neo4j-rest/pom.xml @@ -58,12 +58,14 @@ org.neo4j.server.plugin neo4j-cypher-plugin ${neo4j.version} + true test org.neo4j.server.plugin neo4j-gremlin-plugin ${neo4j.version} + true test diff --git a/src/docbkx/reference/cross-store.xml b/src/docbkx/reference/cross-store.xml index f391d04f2..3e1dfc2f5 100644 --- a/src/docbkx/reference/cross-store.xml +++ b/src/docbkx/reference/cross-store.xml @@ -81,10 +81,10 @@ public class UserAccount { @GraphProperty String nickname; - @RelatedTo(type = "friends", elementClass = UserAccount.class) + @RelatedTo Set friends; - @RelatedToVia(type = "recommends", elementClass = Recommendation.class) + @RelatedToVia(type = "recommends") Iterable recommendations; @Temporal(TemporalType.TIMESTAMP) @@ -99,12 +99,10 @@ public class UserAccount { @Column(name = "id") private Long id; - @Transactional public void knows(UserAccount friend) { relateTo(friend, "friends"); } - @Transactional public Recommendation rate(Restaurant restaurant, int stars, String comment) { Recommendation recommendation = relateTo(restaurant, Recommendation.class, "recommends"); recommendation.rate(stars, comment); diff --git a/src/docbkx/reference/neo4j-server.xml b/src/docbkx/reference/neo4j-server.xml index 851b442a8..00fde69b6 100644 --- a/src/docbkx/reference/neo4j-server.xml +++ b/src/docbkx/reference/neo4j-server.xml @@ -55,7 +55,7 @@ ]]> - Now, your resources can be annotated with the beans they need, like this: + Now, your resources can require the spring-beans they need, annotated with @Context like this: Jersey resource org.springframework.data spring-data-neo4j-rest - 1.1.0.M2 + 1.1.0 ]]> @@ -110,7 +110,7 @@ public void foo( @Context WorldRepository repo ) { REST client configuration - application context - + ]]> diff --git a/src/docbkx/reference/programming-model/indexing.xml b/src/docbkx/reference/programming-model/indexing.xml index 9096d28c2..51e6c11b6 100644 --- a/src/docbkx/reference/programming-model/indexing.xml +++ b/src/docbkx/reference/programming-model/indexing.xml @@ -81,7 +81,7 @@ for (Person middleAgedDeveloper : graphRepository.findAllByRange("age", 20, 40)) Fulltext indexing graphRepository = graphRepositoryFactory @@ -121,7 +121,7 @@ Index namedPersonIndex = gdc.getIndex(Person.class, "people"); namedPersonIndex.get("name", "Mark"); // Fulltext index -Index personFulltextIndex = gdc.getIndex(Person.class, "person-name", true); +Index personFulltextIndex = gdc.getIndex(Person.class, "people-search", true); personFulltextIndex.query("name", "*cha*"); personFulltextIndex.query("{name:*cha*}"); ]]> diff --git a/src/docbkx/reference/programming-model/projection.xml b/src/docbkx/reference/programming-model/projection.xml index 541c27c66..e7c52e502 100644 --- a/src/docbkx/reference/programming-model/projection.xml +++ b/src/docbkx/reference/programming-model/projection.xml @@ -29,7 +29,7 @@ trainings; } diff --git a/src/docbkx/reference/programming-model/relationships.xml b/src/docbkx/reference/programming-model/relationships.xml index bd5d36fbb..47c66d682 100644 --- a/src/docbkx/reference/programming-model/relationships.xml +++ b/src/docbkx/reference/programming-model/relationships.xml @@ -40,19 +40,16 @@ public class Movie { It is also possible to have fields that reference a set of node entities (1:N). These fields come in two forms, modifiable or read-only. Modifiable fields are of the type java.util.Set<T>, and read-only fields are java.lang.Iterable<T>, where T is a @NodeEntity-annotated - class. The Java implementation of generics uses type erasure, meaning that the type parameters are - typically not available at runtime. Therefore, the elementClass attribute must be - specified on the annotation, which must always be present for 1:N fields. + class. Node entity with relationships mostPaidIn; - @RelatedTo(type = "ACTS_IN", elementClass = Movie.class) + @RelatedTo(type = "ACTS_IN") private Set movies; } ]]> @@ -157,7 +154,7 @@ public class Role { Accessing relationship entities using @RelatedToVia roles; public Role playedIn(Movie movie, String title) { diff --git a/src/docbkx/reference/setup.xml b/src/docbkx/reference/setup.xml index d74e2dc15..8d7f83eee 100644 --- a/src/docbkx/reference/setup.xml +++ b/src/docbkx/reference/setup.xml @@ -25,7 +25,7 @@ targetCompatibility = 1.6 springVersion = "3.0.5.RELEASE" -springDataGraphVersion = "1.1.0.M2" +springDataGraphVersion = "1.1.0" aspectjVersion = "1.6.12.M1 apply from:'https://github.com/SpringSource/spring-data-graph/raw/master/build/ @@ -107,7 +107,7 @@ repositories { org.springframework.data spring-data-neo4j - 1.1.0.M2 + 1.1.0