Skip to content

Commit d653a96

Browse files
added a hint for using custom java types with a JSON mapping
1 parent 59d1662 commit d653a96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/src/main/asciidoc/userguide/chapters/domain/basic_types.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,6 +1366,8 @@ include::{example-dir-basic-mapping}/basic/JsonMappingTests.java[tags=basic-json
13661366
----
13671367
====
13681368

1369+
It is recommended to override the `equals`/`hash`-methods in custom java types in order to guarantee that the dirty-checking mechanism works as expected and to avoid unnecessary update-statements.
1370+
13691371
[[basic-mapping-xml]]
13701372
==== XML mapping
13711373

0 commit comments

Comments
 (0)