cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Dynamic Relationship Type with OGM

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

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.

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