How to make spring data neo4j support collection type:Map<RelationshipType, Set<NodeBacked>> -


guys

i try wrapper spring data neo4j (sdn version:3.2.3) developers not familiar sdn. not know how many relationships , relationship types owned domain objects created developers in future, need collection type map> annotated @relatedto , @relatedtovia support developers add relationship , relationship type in runtime, can make sdn transparent developers.

however, find current sdn support collection type set can annotated @relatedto , @relatedtovia indicate relationship owned domain object. in case, developers have hard code each relationship using collection type set annotated @relatedto , @relatedtovia in domain object, exposes sdn developers.

why sdn not support collection type map represent relationship, , how make sdn support collection type?

i think it's best use repository annotated query method return kind of data.

i think quite specific, in theory supported custom fieldaccessor implemented similar other relationship-fieldaccessors, using separate annotation, or better dedicated result type (e.g. allrelationships)

not sure if want this, gain on plain neo4j apis, i.e. node.getrelationships()


Comments