Saving a subclass or arraylist in Relationship entity


(Anush Quinnox) #1

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<>();

SomeClass1 someClass1;

SomeClass2 someClass2;

//Getter and Setters
public Child{
Long Id;

String name;

//Getters and Setters

How do I achieve this?