private String getInverseOneToOneProperty ( String property , OgmEntityPersister otherSidePersister ) { for ( String candidate : otherSidePersister . getPropertyNames ( ) ) { Type candidateType = otherSidePersister . getPropertyType ( candidate ) ; if ( candidateType . isEntityType ( ) && ( ( ( EntityType ) candidateType ) . isOneToOne ( ) && isOneToOneMatching ( this , property , ( OneToOneType ) candidateType ) ) ) { return candidate ; } } return null ; }
Returns the name from the inverse side if the given property de - notes a one - to - one association .