cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Saving a subclass or arraylist in Relationship entity

Hi Team,

I have a query on how to save a subclass or ArrayList inside the relationship entity?

My issue: When I pass the data to a save method from Neo4JRepository there is no issue or error, but when I retrieve or lookup in the database there is no data present.

@RelationshipEntity(type = "HAS_DATA")
public class Parent{

private Long id;

private Long sequenceId;

Set<Child> = new HashSet<>();

@StartNode
SomeClass1 someClass1;

@EndNode
SomeClass2 someClass2;

//Getter and Setters
}
public Child{
Long Id;

String name;

//Getters and Setters
}

How do I achieve this?

0 REPLIES 0