Hibernate 5.0.10 I have a subgraph defined that looks like this:
@NamedSubgraph(name = "proc", attributeNodes = {
@NamedAttributeNode("name"),
@NamedAttributeNode("childTable1"),
@NamedAttributeNode("childTable2"),
@NamedAttributeNode("childTable3"),
@NamedAttributeNode("childTable4")
}),
The problem is that when using this subgraph, I'm getting back all attributes defined in the root table (where name exists), not just the subgraph attributes I've specified. Is there a way to tell hibernate to not fetch those children? My query looks just like select rec from records rec join rec.proc