From c51060c16fa2a22f87b129e1fb01d81c0964dd28 Mon Sep 17 00:00:00 2001 From: David Montag Date: Fri, 8 Apr 2011 16:27:18 -0700 Subject: [PATCH] Shortened titles. ToC looks better now. --- src/docbkx/reference/cross-store.xml | 2 +- src/docbkx/reference/programming-model/aspectj.xml | 2 +- src/docbkx/reference/programming-model/attachdetach.xml | 2 +- .../reference/programming-model/beanvalidation.xml | 2 +- src/docbkx/reference/programming-model/indexing.xml | 2 +- .../reference/programming-model/introducedmethods.xml | 2 +- src/docbkx/reference/programming-model/node-entities.xml | 9 +++++---- .../reference/programming-model/programming-model.xml | 2 +- src/docbkx/reference/programming-model/projection.xml | 2 +- src/docbkx/reference/programming-model/relationships.xml | 9 +-------- src/docbkx/reference/programming-model/transactions.xml | 2 +- .../programming-model/typerepresentationstrategy.xml | 2 +- src/docbkx/reference/samples.xml | 2 +- src/docbkx/reference/setup.xml | 2 +- 14 files changed, 18 insertions(+), 24 deletions(-) diff --git a/src/docbkx/reference/cross-store.xml b/src/docbkx/reference/cross-store.xml index b346de1cc..fa7a37fa1 100644 --- a/src/docbkx/reference/cross-store.xml +++ b/src/docbkx/reference/cross-store.xml @@ -1,7 +1,7 @@ - Cross-store persistence with a graph database + Cross-store persistence The Spring Data Graph project support cross-store persistence which allows parts of the data mode to be stored in a traditional JPA datastore (RDBMS) and other parts of the data model (even partial entites, that is some properties or relationships) in a graph store. diff --git a/src/docbkx/reference/programming-model/aspectj.xml b/src/docbkx/reference/programming-model/aspectj.xml index facbdb39c..12c6f201a 100644 --- a/src/docbkx/reference/programming-model/aspectj.xml +++ b/src/docbkx/reference/programming-model/aspectj.xml @@ -1,7 +1,7 @@
- Overview of the AspectJ support + AspectJ support Behind the scenes, Spring Data Graph leverages AspectJ aspects to modify the behavior of simple annotated POJO entities diff --git a/src/docbkx/reference/programming-model/attachdetach.xml b/src/docbkx/reference/programming-model/attachdetach.xml index 439c0d828..dc52d1e41 100644 --- a/src/docbkx/reference/programming-model/attachdetach.xml +++ b/src/docbkx/reference/programming-model/attachdetach.xml @@ -1,7 +1,7 @@
- Session handling - attached and detached entities + Detached entities By default newly created node entities are in a detached state. When persist() is called on the entity it is attached to the graph store and its properties and relationships are persisted as well. Changing diff --git a/src/docbkx/reference/programming-model/beanvalidation.xml b/src/docbkx/reference/programming-model/beanvalidation.xml index c02a63e44..8ce969cbe 100644 --- a/src/docbkx/reference/programming-model/beanvalidation.xml +++ b/src/docbkx/reference/programming-model/beanvalidation.xml @@ -1,7 +1,7 @@
- Bean Validation - JSR-303 + Bean validation (JSR-303) Spring Data Graph supports property based validation support. So, whenever a property is changed, it is checked against the annotated constraints (.e.g @Min, @Max, @Size, etc). diff --git a/src/docbkx/reference/programming-model/indexing.xml b/src/docbkx/reference/programming-model/indexing.xml index a405c5fd8..8d10a60b7 100644 --- a/src/docbkx/reference/programming-model/indexing.xml +++ b/src/docbkx/reference/programming-model/indexing.xml @@ -1,6 +1,6 @@ -
+
Indexing diff --git a/src/docbkx/reference/programming-model/introducedmethods.xml b/src/docbkx/reference/programming-model/introducedmethods.xml index 18ea4dc33..84c061455 100644 --- a/src/docbkx/reference/programming-model/introducedmethods.xml +++ b/src/docbkx/reference/programming-model/introducedmethods.xml @@ -1,7 +1,7 @@
- Methods added to entity classes + Introduced methods The node and relationship aspects introduce (via AspectJ ITD - inter type declaration) several methods to the entities. diff --git a/src/docbkx/reference/programming-model/node-entities.xml b/src/docbkx/reference/programming-model/node-entities.xml index d6b5075a3..4b32cc494 100644 --- a/src/docbkx/reference/programming-model/node-entities.xml +++ b/src/docbkx/reference/programming-model/node-entities.xml @@ -1,9 +1,10 @@
- Annotations define POJO node entities - Entities are declared using the @NodeEntity annotation. - Relationship entities use the @RelationshipEntity annotation. + Defining node entities + + Node entities are declared using the @NodeEntity annotation. Relationship entities use + the @RelationshipEntity annotation.
@NodeEntity: The basic building block @@ -61,7 +62,7 @@ String title; Numerical values are indexed as such by default, allowing for range queries. Fulltext indexing is also possible by setting the fulltext attribute to true. For details see - the indexing section . + the indexing section .
diff --git a/src/docbkx/reference/programming-model/programming-model.xml b/src/docbkx/reference/programming-model/programming-model.xml index 5d3b09264..91377d676 100644 --- a/src/docbkx/reference/programming-model/programming-model.xml +++ b/src/docbkx/reference/programming-model/programming-model.xml @@ -1,7 +1,7 @@ - Programming model for Spring Data Graph + Programming model This chapter covers the fundamentals of the programming model behind Spring Data Graph. It discusses the AspectJ features used and the annotations provided by Spring Data Graph and how to use them. diff --git a/src/docbkx/reference/programming-model/projection.xml b/src/docbkx/reference/programming-model/projection.xml index ea061379f..07c1d6a2b 100644 --- a/src/docbkx/reference/programming-model/projection.xml +++ b/src/docbkx/reference/programming-model/projection.xml @@ -1,7 +1,7 @@
- Dynamic typing - Projection to unrelated, fitting types + Projecting entities As the underlying data model of a graph database doesn't imply and enforce strict type constraints like a relational model does, it offers much more flexibility on how to model your domain classes and which of diff --git a/src/docbkx/reference/programming-model/relationships.xml b/src/docbkx/reference/programming-model/relationships.xml index 7a4f01331..626821545 100644 --- a/src/docbkx/reference/programming-model/relationships.xml +++ b/src/docbkx/reference/programming-model/relationships.xml @@ -1,7 +1,7 @@
- Relationships relate node entities + Relating node entities Since relationships are first-class citizens in Neo4j, associations between node entities are represented by relationships. In general, relationships are categorized by a type, and start and end nodes (which @@ -9,13 +9,6 @@ Spring Data Graph has special support to represent Neo4j relationships as entities too, but it is often not needed. -
- @NodeEntity - - Any class annotated with @NodeEntity will be backed by a node in the graph. Its fields will, if their - types are supported, be persisted as properties to the node for each entity. - -
@RelatedTo: Connecting node entities diff --git a/src/docbkx/reference/programming-model/transactions.xml b/src/docbkx/reference/programming-model/transactions.xml index 6ced9e2c7..7a9d0da46 100644 --- a/src/docbkx/reference/programming-model/transactions.xml +++ b/src/docbkx/reference/programming-model/transactions.xml @@ -1,7 +1,7 @@
- Transactions in Spring Data Graph + Transactions Neo4j is a transactional database, only allowing modifications to be performed within transaction boundaries. Reading data does however not require transactions. diff --git a/src/docbkx/reference/programming-model/typerepresentationstrategy.xml b/src/docbkx/reference/programming-model/typerepresentationstrategy.xml index 1e37d1f2f..ce28c4304 100644 --- a/src/docbkx/reference/programming-model/typerepresentationstrategy.xml +++ b/src/docbkx/reference/programming-model/typerepresentationstrategy.xml @@ -1,7 +1,7 @@
- Storing type information in the graph + Entity types stored There are several ways to represent the Java type hierarchy of the data model in the graph. In general, for all node and relationship entities, type information is needed to perform certain repository operations. Some of diff --git a/src/docbkx/reference/samples.xml b/src/docbkx/reference/samples.xml index 25927e9cc..702ad69bf 100644 --- a/src/docbkx/reference/samples.xml +++ b/src/docbkx/reference/samples.xml @@ -2,7 +2,7 @@ - Samples + Sample code
Introduction diff --git a/src/docbkx/reference/setup.xml b/src/docbkx/reference/setup.xml index cd69e3639..92f9e16b2 100644 --- a/src/docbkx/reference/setup.xml +++ b/src/docbkx/reference/setup.xml @@ -1,7 +1,7 @@ - Setup required for Spring Data Graph + Environment setup To use Spring Data Graph in your application, some setup is required. For building the application the necessary Maven dependencies must be included and for the AspectJ weaving some extensions of the compile goal are necessary. This chapter also discusses the Spring configuration needed to set up Spring Data Graph. Examples for this setup can be found in the Spring Data Graph examples.