code: @Override
      public Set<Attribute<? super X, ?>> getAttributes()
      {
          Set<Attribute<? super X, ?>> attributes = new HashSet<Attribute<? super X, ?>>();
  
          Set<Attribute<X, ?>> declaredAttribs = getDeclaredAttributes();
          if (declaredAttribs != null)
          {
              attributes.addAll(declaredAttribs);
          }
          if (superClazzType != null)
          {
              attributes.addAll(superClazzType.getAttributes());
          }
  
          return attributes;
      }
docs: /*
  (non-Javadoc)
  
  @see javax.persistence.metamodel.ManagedType#getAttributes()