Hello Jones, thanks for reporting the issue and providing a reproducer! Fetching entities when both batching and cache are enabled was changed as part of https://hibernate.atlassian.net/browse/HHH-15921. In you particular case, the proxy is required to correctly handle eventual associations of the parent entity in the cache. Can you explain why, in your experience, obtaining a proxy instead of the actual instance is a problem? |