cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site maintenance this Wednesday, February 1. Disruptions expected as we migrate the forums.

Dynamic Relationship Type with OGM

ashar2201
Node

I am trying to use same RelationshipEntity with different types

Is there a way to provide type to @RelationshipEntity at runtime ?

@RelationshipEntity(type = )

I know we can do this using APOC but is there a way to do it directly at Entity level ?

2 REPLIES 2

gerrit_meier
Neo4j
Neo4j

Hi,
this is not possible with OGM/SDN. You have to use concrete relationship types.
In the internals of OGM the types get cached and mapped to the class.

jagadeshu
Node Link

Can you please help me, how to do it using APOC.