diff --git a/src/docbkx/tutorial/annotations.xml b/src/docbkx/tutorial/annotations.xml index 3967d3520..59908fe3d 100644 --- a/src/docbkx/tutorial/annotations.xml +++ b/src/docbkx/tutorial/annotations.xml @@ -9,7 +9,7 @@ It's time to put this to a test. How can we be assured that a field is persisted to the graph store? There seemed to be two possibilities. First was to get a GraphDatabaseContext injected and use its getById() method. The other one was a Finder approach. But let's try to keep things simple. - How can we persist an entity and how to get its id? No idea, so time to hit the documentation again, revealing that there are a bunch of methods introduced to the + How can we persist an entity and how to get its id? Looking at the documentation revealed that there are a bunch of methods introduced to the entities by the aspects. That's not obvious, but we found the two that would help here - entity.persist() and entity.getNodeId(). So our test looked like this. diff --git a/src/docbkx/tutorial/domain.xml b/src/docbkx/tutorial/domain.xml index f875b49dc..c53eb01d6 100644 --- a/src/docbkx/tutorial/domain.xml +++ b/src/docbkx/tutorial/domain.xml @@ -3,7 +3,7 @@ Setting the Stage - Movies Domain - The domain model was the next thing we planned to work on. We wanted to sketch it out first before diving into library details. We also looked at the datamodel of core themoviedb data to + The domain model was the next thing we planned to work on. We wanted to sketch it out first before diving into library details. We also looked at the datamodel of core themoviedb data to confirm that it matched our expectations. @@ -84,8 +83,8 @@ With this setup we were ready for the first spike: creating a simple MovieController showing a static view. Check. Next was the setup for Spring Data Graph. - We looked at the README at github and then checked it with the manual. Quite a lot of maven setup for aspectj but otherwise not so much to add. - Time to add a few lines to our spring configuration. + We looked at the README at github and then checked it with the manual. Quite a lot of Maven setup for AspectJ but otherwise not so much to add. + Time to add a few lines to our Spring configuration. @@ -129,7 +128,7 @@ - We spun up jetty to see if there were any obvious issues with the config. Check. + We spun up Jetty to see if there were any obvious issues with the config. It all seemed to work just fine. Check. diff --git a/src/docbkx/tutorial/spring-data-graph.xml b/src/docbkx/tutorial/spring-data-graph.xml index 77c61f4cf..15a61e809 100644 --- a/src/docbkx/tutorial/spring-data-graph.xml +++ b/src/docbkx/tutorial/spring-data-graph.xml @@ -1,16 +1,17 @@ - +x Conjuring Magic - Spring Data Graph - But that was the pure graph database. Using this in our domain would pollute my classes with lots of graph + That was the pure graph database. Using this in our domain would pollute our classes with lots of graph database details. We don't want that. Spring Data Graph - promised to do the heavy lifting for us. So we checked that next. Obviously it heavily depended on aspectj magic. - So there would be certain behavior that was - just observable without being visible in our code, but we were going to give it a try. + promised to do the heavy lifting for us. So we checked that next. + + Spring Data Graph depends heavily on AspectJ magic. Some parts of our classes would behave differently, + but it would not be visible in our code. We were going to give it a try. - First step was lots of maven configuration. + First step was lots of Maven configuration. @@ -71,7 +72,7 @@ ]]> - The spring configuration was much easier, thanks to a provided namespace. + The Spring configuration was much easier, thanks to a provided namespace.