code: public static String getJunctionTableName(
        EntityType entityType, Attribute attr, boolean quotedIdentifier) {
      int nrAdditionalChars = 1;
      String entityPart =
          generateId(entityType, (MAX_IDENTIFIER_BYTE_LENGTH - nrAdditionalChars) / 2);
      String attrPart = generateId(attr, (MAX_IDENTIFIER_BYTE_LENGTH - nrAdditionalChars) / 2);
      return quotedIdentifier
          ? getQuotedIdentifier(entityPart + '_' + attrPart)
          : entityPart + '_' + attrPart;
    }
docs: Returns the junction table name for the given attribute of the given entity
  
  @param entityType entity meta data that owns the attribute
  @param attr attribute
  @return PostgreSQL junction table name