Skip to content

2. Vocabulary

The decorator names are deliberately those of established object-relational mapping — Jakarta Persistence and Spring Data Neo4j — so that an author who has mapped an object model before does not have to learn new words for the same ideas.

Decorator Familiar as Declares
@Node({...}) SDN @Node the class is a node label
@Id() JPA @Id the identity key the store merges on
@Property({...}) SDN @Property metadata the language cannot carry
@Relationship({...}) JPA @ManyToOne + @JoinColumn an edge, on the side holding the key
@Retrieval({...}) — the operation whose result binds as this type

@Retrieval has no mapping-framework equivalent, because no such framework has to answer “a model just looked this up — put it in scope so the next question can refer to it”.