Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.13 KB

migration-guide.adoc

File metadata and controls

29 lines (22 loc) · 1.13 KB

6.3 Migration Guide

Table of Contents

This guide discusses migration to Hibernate ORM version 6.3. For migration from earlier versions, see any other pertinent migration guides as well.

Batch Fetching and LockMode

When LockMode is greater than READ Hibernate does not execute the batch fetching so existing uninitialized proxies will not be initialized. This because the lock mode is different from the one of the proxies in the batch fetch queue.

E.g.

` MyEntity proxy = session.getReference( MyEntity.class, 1 ); MyEntity myEntity = session.find(MyEntity.class, 2, LockMode.WRITE); ` only the entity with id equals to 2 will be loaded but the proxy will not be initialized.