W tried to connect to three levels:
JOIN FETCH entity1.collection1.collection2
but received:
org.hibernate.HibernateException: Errors in named queries: [...]
Is it because it is too deep or because the collection of collections cannot be selected this way? My maximum sampling depth is 3, if relevant.
At the same time, I can make a triple FETCH JOINT, starting from the other side:
JOIN FETCH entity3.entity2.entity1
Somehow I cannot find anything in the JPA specification or in the Hibernate docs that would limit the depth of this sentence.
source share