diff --git a/src/docbkx/reference/cross-store.xml b/src/docbkx/reference/cross-store.xml
index d0f00b230..f391d04f2 100644
--- a/src/docbkx/reference/cross-store.xml
+++ b/src/docbkx/reference/cross-store.xml
@@ -125,7 +125,9 @@ public class UserAccount {
All you need to do is to specify an entityManagerFactory in the XML namespace
config element, and Spring Data Graph will configure itself for cross-store use.
-
+ Cross-store Spring configuration
+
]]>
+
+
diff --git a/src/docbkx/reference/neo4j.xml b/src/docbkx/reference/neo4j.xml
index 0f364d7fd..eec2043c9 100644
--- a/src/docbkx/reference/neo4j.xml
+++ b/src/docbkx/reference/neo4j.xml
@@ -81,8 +81,7 @@
Neo4j usage
-
Traversal usage
-
Index usage
- nodeIndex = indexManager.forNodes("a-node-index");
Node node = ...;
Transaction tx = graphDb.beginTx();
diff --git a/src/docbkx/reference/programming-model/beanvalidation.xml b/src/docbkx/reference/programming-model/beanvalidation.xml
index 344edef98..de0d6203d 100644
--- a/src/docbkx/reference/programming-model/beanvalidation.xml
+++ b/src/docbkx/reference/programming-model/beanvalidation.xml
@@ -11,8 +11,7 @@
Bean validation
-
Indexing entities
-
Fulltext indexing
-
Manual index usage
- personIndex = gdc.getIndex(Person.class);
diff --git a/src/docbkx/reference/programming-model/projection.xml b/src/docbkx/reference/programming-model/projection.xml
index 07c1d6a2b..541c27c66 100644
--- a/src/docbkx/reference/programming-model/projection.xml
+++ b/src/docbkx/reference/programming-model/projection.xml
@@ -24,9 +24,9 @@
reporting or auditing) and only project them to a concrete, more functional target type when the business
logic requires it.
-
+ Projection of entities
+
+
+
diff --git a/src/docbkx/reference/programming-model/relationships.xml b/src/docbkx/reference/programming-model/relationships.xml
index 083fe52de..4f89d62ec 100644
--- a/src/docbkx/reference/programming-model/relationships.xml
+++ b/src/docbkx/reference/programming-model/relationships.xml
@@ -24,8 +24,7 @@
Single relationship field
-
Node entity with relationships
-
Relationship entity
-
Accessing relationship entities using @RelatedToVia
- roles;
diff --git a/src/docbkx/reference/programming-model/repositories.xml b/src/docbkx/reference/programming-model/repositories.xml
index 71cf38ecb..b41fdf552 100644
--- a/src/docbkx/reference/programming-model/repositories.xml
+++ b/src/docbkx/reference/programming-model/repositories.xml
@@ -132,28 +132,27 @@
Using GraphRepositories
- graphRepository = graphRepositoryFactory
- .createGraphRepository(Person.class);
+ graphRepository = graphRepositoryFactory
+ .createGraphRepository(Person.class);
- Person michael = graphRepository.save(new Person("Michael", 36));
+Person michael = graphRepository.save(new Person("Michael", 36));
- Person dave = graphRepository.findOne(123);
+Person dave = graphRepository.findOne(123);
- Long numberOfPeople = graphRepository.count();
+Long numberOfPeople = graphRepository.count();
- Person mark = graphRepository.findByPropertyValue("name", "mark");
+Person mark = graphRepository.findByPropertyValue("name", "mark");
- Iterable devs = graphRepository.findAllByProperyValue("occupation", "developer");
+Iterable devs = graphRepository.findAllByProperyValue("occupation", "developer");
- Iterable middleAgedPeople = graphRepository.findAllByRange("age", 20, 40);
+Iterable middleAgedPeople = graphRepository.findAllByRange("age", 20, 40);
- Iterable aTeam = graphRepository.findAllByQuery("name", "A*");
+Iterable aTeam = graphRepository.findAllByQuery("name", "A*");
- Iterable davesFriends = graphRepository.findAllByTraversal(dave,
- Traversal.description().pruneAfterDepth(1)
- .relationships(KNOWS).filter(returnAllButStartNode()));
- ]]>
+Iterable davesFriends = graphRepository.findAllByTraversal(dave,
+ Traversal.description().pruneAfterDepth(1)
+ .relationships(KNOWS).filter(returnAllButStartNode()));
+]]>
@@ -167,8 +166,7 @@
Composing repositories
- , PersonRepositoryExtension {}
+ , PersonRepositoryExtension {}
// alternatively select some of the required repositories individually
public interface PersonRepository extends CRUDGraphRepository,
diff --git a/src/docbkx/reference/programming-model/transactions.xml b/src/docbkx/reference/programming-model/transactions.xml
index 7a9d0da46..afb2dfe50 100644
--- a/src/docbkx/reference/programming-model/transactions.xml
+++ b/src/docbkx/reference/programming-model/transactions.xml
@@ -22,8 +22,7 @@
Simple transaction manager configuration
-
+
@@ -47,8 +46,7 @@
Neo4j Spring integration
-
+
@@ -78,8 +76,7 @@
ChainedTransactionManager example
-
diff --git a/src/docbkx/tutorial/annotations.xml b/src/docbkx/tutorial/annotations.xml
index 46c5c43ad..bcedd0908 100644
--- a/src/docbkx/tutorial/annotations.xml
+++ b/src/docbkx/tutorial/annotations.xml
@@ -33,8 +33,7 @@
First test case
-
Movie class
-
Domain model
-
JSON movie response
-
JSON actor response
-
Importing the data
-
Exact Indexing for Movie id
-
Neo4j Maven dependency
-
+
org.neo4j
neo4j
1.3.M05
@@ -41,8 +40,7 @@
Neo4j core API (transaction code omitted)
-
Recommendations
- recommendMovies(User user, final int ratingDistance) {
+ recommendMovies(User user, final int ratingDistance) {
final DynamicRelationshipType RATED = withName(User.RATED);
final Map ratings=new HashMap();
TraversalDescription traversal= Traversal.description().breadthFirst()
diff --git a/src/docbkx/tutorial/relationships.xml b/src/docbkx/tutorial/relationships.xml
index 1cda800f5..428b4293e 100644
--- a/src/docbkx/tutorial/relationships.xml
+++ b/src/docbkx/tutorial/relationships.xml
@@ -19,8 +19,7 @@
Role class
-
Relating actors to movies
-
@RelatedTo usage
-
@RelatedToVia usage
-
Movie repository
- {}
]]>
Then we added it to the Spring context configuration by simply adding:
Repository context configuration
-
+
]]>
We then created the domain-specific repository class, annotating it with @Repository and
@@ -27,8 +25,7 @@ public interface MovieRepository extends GraphRepository {}
Domain-specific repository
-
Populating the database - Controller
-
Populating the database - JSP
-
+
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
@@ -119,8 +117,7 @@ public class MovieController {
Starting the Neo4j Shell
-
@@ -132,8 +129,7 @@ neo4j-shell -readonly -path data/graph.db
Neo4j Shell usage
- for info about each command.
diff --git a/src/docbkx/tutorial/security.xml b/src/docbkx/tutorial/security.xml
index 36b3cc02a..98ab8b54f 100644
--- a/src/docbkx/tutorial/security.xml
+++ b/src/docbkx/tutorial/security.xml
@@ -15,8 +15,7 @@
Spring Security pom.xml
-
+
org.springframework.security
spring-security-web
${spring.version}
@@ -32,8 +31,7 @@
Spring Security web.xml
-
+
contextConfigLocation
/WEB-INF/applicationContext-security.xml
@@ -60,8 +58,7 @@
Spring Security applicationContext-security.xml
-
+
@@ -89,8 +86,7 @@
UserDetailsService and UserDetails implementation
-
Project pom.xml
-
+
3.0.5.RELEASE
@@ -69,8 +68,7 @@
Project web.xml
-
+
org.springframework.web.context.ContextLoaderListener
@@ -99,8 +97,7 @@
Project applicationContext.xml
-
+
Project dispatcherServlet-servlet.xml
-
+
diff --git a/src/docbkx/tutorial/social.xml b/src/docbkx/tutorial/social.xml
index 6d0302c4d..1a8a4ae37 100644
--- a/src/docbkx/tutorial/social.xml
+++ b/src/docbkx/tutorial/social.xml
@@ -18,8 +18,7 @@
Social entities
-
Populate users and ratings
- populateDatabase() {
Actor tomHanks = new Actor("1", "Tom Hanks").persist();
Movie forestGump = new Movie("1", "Forrest Gump").persist();
@@ -88,8 +86,7 @@ public List populateDatabase() {
Getting the rating of a movie
-
Spring Data Graph Maven configuration
-
+
1.6.11.RELEASE
@@ -85,8 +83,7 @@
Spring Data Graph context configuration
-
diff --git a/src/docbkx/tutorial/webapp.xml b/src/docbkx/tutorial/webapp.xml
index d4073fb83..1b5a6b328 100644
--- a/src/docbkx/tutorial/webapp.xml
+++ b/src/docbkx/tutorial/webapp.xml
@@ -12,8 +12,7 @@
Controller for showing movies
-
Searching for movies
- findMovies(String query, int count) {
List movies=new ArrayList(count);
@@ -79,8 +77,7 @@ public class CineastRepository {
Search controller
- movies = repository.findMovies(query, 20);
model.addAttribute("movies", movies);
@@ -93,8 +90,7 @@ public String findMovies(Model model, @RequestParam("q") String query) {
Search Results JSP
- Movies
+ Movies