Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 1.16 KB

File metadata and controls

14 lines (8 loc) · 1.16 KB

Enable Dirty Tracking

Description: Prior to Hibernate version 5, the dirty checking mechanism relies on Java Reflection API. Starting with Hibernate version 5, the dirty checking mechanism relies on bytecode enhancement. This approach sustain a better performance, especially when you have a relatively large number of entitites.

Key points:
- add the corresponding plugin in pom.xml (use Maven bytecode enhancement plugin)

Output example:

The bytecode enhancement effect can be seen on User.class here