You need to create a class to be used as your persistence entity. Annotate the class with @Node(“label to use”) and set the nodes’s label as its parameter.
The class requires a unique identifier annotated with @Id. You can generate your own unique identifiers, or use one SDN built in ones.
You can have a map as a class member, buts its key has to be a string or an enum. It can be an object as you show in your example code. You annotate the map’s member name with @CompositeProperty.
You can learn more from this link.
https://docs.spring.io/spring-data/neo4j/reference/index.html