@NamedAttributeNode
中的值@NamedAttributeNode
中的命名子图@NamedEntityGraph
中的名称示例:
@Entity
@NamedEntityGraph(name = "entity-graph", ...)
public class JavaEntity {
public void foo() {
Persistence.createEntityManagerFactory("")
.createEntityManager()
.getEntityGraph("unknown-entity-graph"); // 未解析的引用
}
}