Fixed almost all docbook validation issues. Upgraded the docbkx plugin to 2.0.11 which will work for both html and pdf.
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -296,7 +296,7 @@
|
||||
<plugin>
|
||||
<groupId>com.agilejava.docbkx</groupId>
|
||||
<artifactId>docbkx-maven-plugin</artifactId>
|
||||
<version>2.0.8</version>
|
||||
<version>2.0.11</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>single-page</id>
|
||||
|
||||
@@ -63,17 +63,17 @@
|
||||
We also appreciate very much the foresight of Rod Johnson and Emil Eifrem to initiate the project, and now
|
||||
also providing great forewords. Their leadership inspired collaboration between the engineering teams at
|
||||
SpringSource and Neo Technology, a tremendous help during the making of Spring Data Neo4j.
|
||||
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
<para>
|
||||
Last but not least we thank our vibrant community, both in the Spring Forums as well as on the Neo4j
|
||||
Mailing list and on many other places on the internet for giving us feedback, reporting issues and suggesting
|
||||
improvements. Without that important feedback we wouldn't be where we are today.
|
||||
|
||||
|
||||
</para>
|
||||
</section>
|
||||
<para>
|
||||
Enjoy the book!
|
||||
</para>
|
||||
</section>
|
||||
</preface>
|
||||
|
||||
@@ -63,12 +63,13 @@
|
||||
persists fields explicitly annotated with <code>@GraphProperty</code>. JPA will ignore these fields.
|
||||
</para>
|
||||
</section>
|
||||
<section><title>Example</title>
|
||||
<para>
|
||||
The following example is taken from the
|
||||
<ulink url="http://github.com/SpringSource/spring-data-neo4j-examples">Spring Data Neo4j examples</ulink>
|
||||
myrestaurants-social project:
|
||||
</para>
|
||||
<example>
|
||||
<para><example>
|
||||
<title>Cross-store node entity</title>
|
||||
<programlisting language="java"><![CDATA[@Entity
|
||||
@Table(name = "user_account")
|
||||
@@ -114,7 +115,8 @@ public class UserAccount {
|
||||
}
|
||||
}
|
||||
]]></programlisting>
|
||||
</example>
|
||||
</example></para>
|
||||
</section>
|
||||
</section>
|
||||
<section>
|
||||
<title>Configuring cross-store persistence</title>
|
||||
|
||||
@@ -31,23 +31,23 @@
|
||||
Neo4j has been in commercial development for 10 years and in production for over 7 years.
|
||||
Most importantly it has a helpful and contributing community surrounding it, but it also:
|
||||
<itemizedlist>
|
||||
<listitem>has an intuitive graph-oriented model for data representation. Instead of tables, rows,
|
||||
<listitem><simpara>has an intuitive graph-oriented model for data representation. Instead of tables, rows,
|
||||
and columns, you work with a graph consisting of
|
||||
<ulink url="http://wiki.neo4j.org/content/Getting_Started">nodes, relationships, and properties</ulink>.
|
||||
</listitem>
|
||||
<listitem>has a disk-based, native storage manager optimized for storing graph structures
|
||||
</simpara></listitem>
|
||||
<listitem><simpara>has a disk-based, native storage manager optimized for storing graph structures
|
||||
with maximum performance and scalability.
|
||||
</listitem>
|
||||
<listitem>is scalable. Neo4j can handle graphs with many billions of nodes/relationships/properties on
|
||||
</simpara></listitem>
|
||||
<listitem><simpara>is scalable. Neo4j can handle graphs with many billions of nodes/relationships/properties on
|
||||
a single machine, but can also be scaled out across multiple machines for high availability.
|
||||
</listitem>
|
||||
<listitem>has a powerful traversal framework for traversing in the node space.
|
||||
</listitem>
|
||||
<listitem>can be deployed as a standalone server or an embedded database with a very small
|
||||
</simpara></listitem>
|
||||
<listitem><simpara>has a powerful traversal framework for traversing in the node space.
|
||||
</simpara></listitem>
|
||||
<listitem><simpara>can be deployed as a standalone server or an embedded database with a very small
|
||||
distribution footprint (~700k jar).
|
||||
</listitem>
|
||||
<listitem>has a Java <ulink url="http://api.neo4j.org/">API</ulink>.
|
||||
</listitem>
|
||||
</simpara></listitem>
|
||||
<listitem><simpara>has a Java <ulink url="http://api.neo4j.org/">API</ulink>.
|
||||
</simpara></listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
<para>
|
||||
@@ -132,9 +132,9 @@ for (Path position : traversalDescription.traverse(myStartNode)) {
|
||||
Spring Data Neo4j provides automatic indexing via the @Indexed annotation, eliminating the need
|
||||
for manual index management.
|
||||
</para>
|
||||
<note>
|
||||
<note><para>
|
||||
Modifying Neo4j indexes also requires transactions.
|
||||
</note>
|
||||
</para></note>
|
||||
<example>
|
||||
<title>Index usage</title>
|
||||
<programlisting language="java"><![CDATA[IndexManager indexManager = graphDb.index();
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Spring Data Neo4j allows, at anytime, to drop down to the <xref linkend="neo4j" >Neo4j-API</xref> level to execute functionality with
|
||||
Spring Data Neo4j allows, at anytime, to drop down to the Neo4j-API, see <xref linkend="neo4j" /> level to execute functionality with
|
||||
the highest performance possible.
|
||||
</para>
|
||||
<para>
|
||||
@@ -46,16 +46,16 @@
|
||||
</para>
|
||||
<para>
|
||||
To use advanced functionality like traversals, Cypher and Gremlin, a basic understanding of the graph data model is required.
|
||||
The graph data model is explained in the chapter about <xref linkend="neo4j">Neo4j</xref>.
|
||||
The graph data model is explained in the chapter about Neo4j, see <xref linkend="neo4j" />.
|
||||
</para>
|
||||
<para>
|
||||
Relationships between entities are first class citizens in a graph database and therefore worth a separate
|
||||
<xref linkend="reference:programming_model:relationships" >chapter</xref> describing their usage in Spring Data Neo4j.
|
||||
chapter (<xref linkend="reference:programming_model:relationships" />) describing their usage in Spring Data Neo4j.
|
||||
</para>
|
||||
<para>
|
||||
To add fields that are just backed by graph operations is a bit more involved. First you should know
|
||||
about traversals, Cypher queries and Gremlin expressions.
|
||||
Those are explained in the <xref linkend="neo4j" >Neo4j-API</xref> chapter. Then you can start adding purely
|
||||
Those are explained in <xref linkend="neo4j" />Neo4j-API. Then you can start adding purely
|
||||
dynamically gathered fields to your entities.
|
||||
</para>
|
||||
<para>
|
||||
@@ -124,7 +124,7 @@
|
||||
</para>
|
||||
<para>
|
||||
Being a Spring Data library, Spring Data Neo4j also implements a comprehensive template for interacting with the Neo4j graph database.
|
||||
The <xref linkend="reference:template">Neo4jTemplate</xref> provides all basic graph operations as well as advanced querying with
|
||||
The Neo4jTemplate (<xref linkend="reference:template" />) provides all basic graph operations as well as advanced querying with
|
||||
Indexes, Cypher, Gremlin and Traversals with a convenient API.
|
||||
</para>
|
||||
<para>
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
<ulink url="http://download.eclipse.org/tools/ajdt/36/dev/update">http://download.eclipse.org/tools/ajdt/36/dev/update</ulink>).
|
||||
The current version that does not show incorrect errors is AspectJ 1.6.12.RELEASE (included in STS 2.8.0), previous versions are reported
|
||||
to mislead the user.
|
||||
</para> ¸
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
There might be some issues with the eclipse maven plugin not adding AspectJ files correctly to the build path.
|
||||
@@ -68,4 +68,4 @@
|
||||
give the compiler at least 512 MB of RAM.
|
||||
</para>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@@ -91,12 +91,12 @@ Person mark = graphRepository.findAllByQuery("people-search", "name", "ma*");
|
||||
</example>
|
||||
|
||||
</para>
|
||||
<note>
|
||||
<note><para>
|
||||
Please note that indexes are currently created on demand, so whenever an index that doesn't exist
|
||||
is requested from a query or get operation it is created. This is subject to change but has
|
||||
currently the implication that those indexes won't be configured as fulltext which causes
|
||||
subsequent fulltext updates to those indexes to fail.
|
||||
</note>
|
||||
</para></note>
|
||||
</section>
|
||||
<section>
|
||||
<title>Manual index access</title>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<para>
|
||||
If the <code>partial</code> attribute is set to true, this entity takes part in a cross-store setting,
|
||||
where the entity lives in both the graph database and a JPA data source. See
|
||||
<xref linkend="cross-store"/> for more information.
|
||||
<xref linkend="reference:cross-store"/> for more information.
|
||||
</para>
|
||||
<para>
|
||||
Entity fields can be annotated with <code>@GraphProperty</code>, <code>@RelatedTo</code>,
|
||||
@@ -94,11 +94,11 @@ public class Group {
|
||||
]]></programlisting>
|
||||
|
||||
</example>
|
||||
<para>
|
||||
<note>
|
||||
<note>
|
||||
<para>
|
||||
Please note that this annotation can also be used on repository methods.
|
||||
</note>
|
||||
</para>
|
||||
</para>
|
||||
</note>
|
||||
</section>
|
||||
<section>
|
||||
<title>@GraphTraversal: fields as traversal result views</title>
|
||||
@@ -132,4 +132,4 @@ public class Group {
|
||||
|
||||
</example>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
@@ -81,12 +81,12 @@ public class MovieController {
|
||||
<para>
|
||||
Accessing the URI showed the single added movie on screen.
|
||||
</para>
|
||||
<note>
|
||||
<note><para>
|
||||
Pardon the misused GET parameter for that (don't try this at home, the
|
||||
<ulink url="http://restinpractice.com">REST guys</ulink> will hunt you down). This is only for
|
||||
running it from the browser address line. The next iteration of this website would use a button
|
||||
with POST.
|
||||
</note>
|
||||
</para></note>
|
||||
</section>
|
||||
<section>
|
||||
<title>Inspecting the datastore</title>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
classes clean. Spring Data Neo4j promised to do the heavy lifting for us, so we continued investigating it.
|
||||
</para>
|
||||
<para>
|
||||
Spring Data Neo4j depends heavily on AspectJ <xref linkend="reference:aspectj-details">features</xref>.
|
||||
Spring Data Neo4j depends heavily on AspectJ, see <xref linkend="reference:aspectj-details" />.
|
||||
Some parts of our classes would get new behavior,
|
||||
but it would not be visible in our code. The upside of this is that you get rid of a lot of boilerplate
|
||||
code.
|
||||
|
||||
Reference in New Issue
Block a user