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 ?

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.