|
Having a mapped super class:
@MappedSuperclass
public class MappedSupperclass {
@OneToOne(fetch = FetchType.LAZY)
public Bar bar;
}
And extending class Foo:
@Entity
public class Foo extends MappedSupperclass {
}
Trying to add Subgraph:
EntityGraph<Foo> entityGraph = em.createEntityGraph( Foo.class );
entityGraph.addSubgraph( "bar" );
Throws exception:
Reason: In AttributeNodeImpl,internalMakeSubgraph the declaring type of the attribute is used not the queried managed type.
PR will follow
|