relationshipName

Retrieves the relational name associated with a property in the context of the raph schema.

The relationshipName is determined based on the following rules:

  • If the property is annotated with the @Relationship annotation, the value of the annotation is used as the relationship name, provided it is non-null and not an empty string.

  • If the property name ends with "Edge", this suffix is removed. This adjustment is made to account for cases where two variables represent an edge, one named with "Edge" and another as the delegate without the suffix. The desired name is the one without "Edge".

  • The resulting name is converted to UPPER_SNAKE_CASE for standardization.