To keep in line with DDD and Bounded Contexts, its well known that when you create your microservices you should keep separation of concerns.
One of the main benefits of Neo4J is keeping your "connected" data in Neo4J so relationships between them…
I am currently working on a Spring Data Neo4j 5.0.3 REST API application that interfaces with a Neo4j 3.3.1 causal cluster consisting of 3 core nodes (1 leader and 2 followers). For better or for worse, we are also submitting a lot of custom cypher…
I'm using spring data neo4j (5.0.7.RELEASE) and spring (5.0.6.RELEASE)
with configuration from the docs https://github.com/spring-projects/spring-data-neo4j#quick-start
When I try to start the application it fails with this exception:
Caused by:…
I have the following Spring Data Neo4j 5 entity:
@NodeEntity
public class Value extends Flaggable {
@Index(unique = true)
private Long id;
private String name;
private String description;
@Index(unique = false)
private…
I'm having some issues getting the @CreatedDate among other auditing functionality from working at all. I believe I've followed the guidance provided in the Reference Document but I believe something may be missing. I'm currently using Spring Boot…
I'm trying to get Neo4j working, but I end up getting this errror when either trying to get an entity, or persist one, and cannot figure it out.
Caused by: java.lang.IllegalArgumentException: Can not set java.lang.Long field…
I have created two different Spring Data Neo4j 5 @RelationshipEntity with the same type:
@RelationshipEntity(type = "CONTAINS")
public class CharacteristicRelationship {
@Id
@GeneratedValue
private Long id;
@StartNode
private…
As per the example code retrieved here: http://projects.spring.io/spring-data-neo4j/
A node entity can be created with the following code:
@NodeEntity
public class Movie {
@Id @GeneratedValue Long id;
String title;
Person director;
…
Hot to properly index SDN 5 dynamic @Properties?
Will the following property declaration work:
@Index(unique = false)
@Properties(prefix = NAME_PROPERTY_PREFIX)
private Map nameProperties = new HashMap<>();
will all properties keys…
This is my SDN 5 relationship entity:
@RelationshipEntity(type = "HAS_VALUE_ON")
public class RelationshipValue {
@Id
@GeneratedValue
private Long id;
@StartNode
private Decision decision;
@EndNode
private Valuable…
I am using Spring Data 5 via Spring Boot 2.0.0.M4.
I noticed that when using @EntityScan and providing a package, it includes scanning of 'inner' classes that are generated by Kotlin. In my example below, I only have one property, but I have also…
Using domain classes below within a sdn5 application, I'm able to create people and to store them in neo4j.
Everything is ok from a DB point of view (nodes and relation are present).
import com.fasterxml.jackson.annotation.JsonIgnore
import…
In an attempt to recreate the Spring Data Neo4j official Movies example in Scala I have ran into an issue jsonifying on the Spring Data Neo4j layer.
The details are noted in the README in this example project.
Booting the Spring app and hitting…
I have a structure, which (simplified) looks like this:
@NodeEntity(label = "Entity")
class FullEntity {
@Id @GeneratedValue
var _id: Long? = null
@Id @Index(unique = true)
lateinit var uuid: String
lateinit var someMoreData:…
I have the following Neo4j SDN5/OGM/Cypher logic:
MATCH (v:Value)-[:CONTAINS]->(hv:HistoryValue)
WHERE v.id = {valueId}
OPTIONAL MATCH (hv)-[:CREATED_BY]->(u:User)
WHERE {fetchCreateUsers}
WITH u, hv
ORDER BY hv.createDate DESC
WITH count(hv)…