Skip to content

Commit

Permalink
Issue vladmihalcea#138: Added documentation for JsonBinaryType dirty …
Browse files Browse the repository at this point in the history
…checking behavior
  • Loading branch information
cosminseceleanu authored Dec 2, 2020
1 parent 208e22a commit b8f8a33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ You should use this `JsonBinaryType` to map both `jsonb` and `json` column types

For more details, check out [this article](https://vladmihalcea.com/how-to-map-json-objects-using-generic-hibernate-types/).

`JsonBinaryType` dirty checking will be performed using `equals` for collections or when explicitly implemented in the POJO class. Therefore, to prevent unexpected updates you should always implement `equals` and `hashCode` methods according to Java best practices.

##### MySQL

You should use this `JsonStringType` to map the `json` column type.
Expand Down

0 comments on commit b8f8a33

Please sign in to comment.