I’m trying to fetch entities from the database that have hierarchical composite identifiers and the relationship between entities is lazy loaded. Additionally I’m repeating the same fetch with lazily loaded entities and the max fetch depth configured. In both of my tests, I’m seeing issues with Hibernate fetching the data from the database. I’ve attached a patch file containing the unit tests and one small fix that I identified. The are a couple of errors remaining but I’m not familiar enough with Hibernate to resolve them. |