code: static Stream<Attribute> getPersistedAttributes(EntityType entityType) {
      return stream(entityType.getAtomicAttributes())
          .filter(atomicAttr -> atomicAttr.getExpression() == null);
    }
docs: Returns attributes persisted by PostgreSQL (e.g. no compound attributes and attributes with an
  expression)
  
  @return stream of persisted attributes