code: static Stream<Attribute> getJunctionTableAttributes(EntityType entityType) {
      // return all attributes referencing multiple entities except for one-to-many attributes that
      // are mapped by
      // another attribute
      return getPersistedAttributes(entityType)
          .filter(
              attr ->
                  isMultipleReferenceType(attr)
                      && !(attr.getDataType() == ONE_TO_MANY && attr.isMappedBy()));
    }
docs: Returns all non-bidirectional attributes persisted by PostgreSQL in junction tables (e.g. no
  compound attributes and attributes with an expression)
  
  @return stream of attributes persisted by PostgreSQL in junction tables