Skip to content

Latest commit

 

History

History

HibernateSpringBootEnableDirtyTracking

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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