Hi,
I'm just playing around with spring-data neo4j ... Suppose I have a Profile class containing a set of Address
@NodeEntity
class Profile {
@GraphId Long id;}
String name;
Set<Address> addresses;class Address {
String doorNumber;}
String street;
String city;
I want to be able to build a Profile object, and using a ProfileRepository, call repository.save(myProfile) and have the addresses automatically saved. But Address is a simple object. Do I have to make Address an NodeEntity and give it an ID property ? I tried it and when I get back the Profile object back from the repository, there is one address in the list and all the fields are null except ID.
What are my options ?
Thanks


Reply With Quote