Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Phase 2: migrate recent content

Mapping relation properties with unknown names (Spring Data Neo4j)

Node Clone

I'm not sure my problem can be supported. In my application, I want users to define their own properties for relations (they choose key and value). To retrieves those properties, I make use of @RelationshipProperties. It seems not possible to define an attribute of type Map<String, String> to harvest key value of all properties of the relation.

My question : is there a way to retrieves property we don't know the key in the class mapping?

For information :

  • org.springframework.boot.spring-boot-starter-data-neo4j:2.7.0

Thank you for your time.