Mapping relation properties with unknown names (Spring Data Neo4j)

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
  • org.springframework.data.spring-data-neo4j:6.3.0

Thank you for your time.