Eager-load the whole object-graph at runtime in Hibernate
问题 Please read on before saying anything along the lines of "specify the fetch type in the query". That's not what I'm after. I'm looking for a way to eager-load a complete object-graph (the object + all its children and all their children and so on). I do not want to enumerate all properties that are to be loaded. I don't know them until runtime. N+1 queries aren't a problem. But at the end of this magical operation, I don't want a single proxy or lazy collection left in my graph. It should be