IMHO Chapter 3.7.4.2 of the JPA spec says that @NamedEntityGraph can be used instead of fetch joins. For instance: @Entity @Table(name = "kunde") @DiscriminatorColumn(name = "art", length = 1) @NamedQueries({...}) @NamedEntityGraphs({ @NamedEntityGraph(name = "bestellungen", attributeNodes = @NamedAttributeNode("bestellungen"))}) public abstract c...
|