2

JPA ManagedType has

public Set<Attribute<? super X, ?>> getAttributes()

public Set<Attribute<X, ?>> getDeclaredAttributes()

What are declared attributes? what are not declared attributes? Please explain by example.

https://docs.oracle.com/javaee/7/api/javax/persistence/metamodel/ManagedType.html

eastwater
  • 4,624
  • 9
  • 49
  • 118
  • 1
    Look at `Class` and `getDeclaredFields`/`getFields`, and you have your answer. Inheritance ... – Neil Stockton Aug 30 '17 at 06:40
  • Thanks. It seems that there is no difference between getConstructor(...) and getDeclaredConstructor(...). – eastwater Aug 30 '17 at 11:50
  • 1
    Addition to @NeilStockton, see also: [What is the difference between getFields and getDeclaredFields in Java reflection](https://stackoverflow.com/a/16966699/2049986). – Jacob van Lingen Jul 07 '20 at 09:39

0 Answers0