Database Reference
In-Depth Information
that has some consequences.” There are techniques for dealing with this scenario,
but we won't be covering this issue in this topic. Once again, we direct you to
the official website for more information. See the “Entity Equality” section in ht-
tp://docs.spring.io/spring-data/neo4j/docs/current/reference/html .
9.2.2. Annotating the domain model
SDN is an annotation-based object-graph mapping library. This means it's a library that re-
lies on being able to recognize certain SDN-specific annotations attached to parts of your
code.Theseannotationsprovideinstructionsabouthowtotransformtheassociatedcodeto
the underlying structures in the graph.
Sometimes you may even find that you don't need to annotate certain pieces of code. This
is because SDN tries to infer some sensible defaults, applying the principle of convention
over configuration. OGM is to graphs what ORM is to an RDBMS.
The following listing shows SDN annotations added to the POJOs to identify them as en-
tities backed by Neo4j.
 
Search WWH ::




Custom Search