It would seem BatchEntitySelectFetchInitalizer#endLoading (https://github.com/hibernate/hibernate-orm/blob/9ecb4484a40ef37a362bb095b3081d5ba277153e/hibernate-core/src/main/java/org/hibernate/sql/results/graph/entity/internal/BatchEntitySelectFetchInitializer.java#L224 ) method is not called when invoking TypedQuery#getResultStream(). Thus the associated @ManyToOne entities are not set. When invoking TypedQuery#getResultList() this works as expected. |