In the Neo4j OGM tutorial, I see that only Set have been used for mapping relationships. Is it possible to use a map ?
Consider the following example
Suppose I have a class as follows:
@NodeEntity
public class Person {
@Property
String idCardNumber;
Map <String, Car> cars;
}
@NodeEntity
public class Car{
@Id
String plateNumber;
@Property
String color;
}
How to define a relationship from the class Person and Car given the it's a map that is being used in the class Person ?