public String getRelationshipName()
    {
        String ret;
        if (tableAB == null /* && multipleRelationsBetweenTables */)
        {
            ret = concatenateColumnNames(this);
            ret = ret.substring(1); // remove leading _.
        }
        else // Many-to-Many relationship
        {
            ForeignKey[] fks = tableAB.getForeignKeys().values().toArray(new ForeignKey[2]);
            ret = ForeignKey.concatenateColumnNames(fks[1]).substring(1);
        }

        String multiplicity = getTableBMultiplicity();
        if (!multiplicity.equals("one"))
            ret = StringUtility.englishPluralize(ret);
        return ret;
    }
public String getRelationshipName ( ) { String ret ; if ( tableAB == null ) { ret = concatenateColumnNames ( this ) ; ret = ret . substring ( 1 ) ; } else { ForeignKey [ ] fks = tableAB . getForeignKeys ( ) . values ( ) . toArray ( new ForeignKey [ 2 ] ) ; ret = ForeignKey . concatenateColumnNames ( fks [ 1 ] ) . substring ( 1 ) ; } String multiplicity = getTableBMultiplicity ( ) ; if ( ! multiplicity . equals ( "one" ) ) ret = StringUtility . englishPluralize ( ret ) ; return ret ; }
TableB as property name in TableA