I have a query on how to save a Subclass or ArrayList inside the relationship entity?
My issue: When I pass data to the save call from the repository to save Child as part of the Parent there is no issue or error, but when I retrieve or lookup in the database there is no data present.
Parent Class:
@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
}
Child Class:
public class Child{
Long Id;
String name;
//Getters and Setters
}
How do I achieve this?