The automatic dirty checking feature of Hibernate, calls update statement automatically on the objects that are modified in a transaction.
Let's understand it by the example given below:
Here, after getting employee instance e1 and we are changing the state of e1.
After changing the state, we are committing the transaction. In such a case, the state will be updated automatically. This is known as dirty checking in hibernate.