Neo4J 5 and Spring Boot 3 Neo4jRepository org.springframework.data.mapping.MappingException: Couldn't find PersistentEntity for type class java.util.HashMap

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.

https://docs.spring.io/spring-data/neo4j/reference/appendix/conversions.html#custom.conversions.composite-properties

You can learn more from this link.

https://docs.spring.io/spring-data/neo4j/reference/index.html