-
-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
Description
Hi
The spring default Jackson serialization causes problems with serializing joda beans:
- it serializes all gettters by default (requiring @JsonIgnore on any additional getters you add)
- it needs specific constructors or setters for deserialization
- all super types need to be registered
- it uses different type hints by default
- date and time values often get mangled if not set-up correctly
- just having 2 subtly different serialization formats causes heaps of problems
To fix this the following code replaces jackson serialization for all sub-types of Bean. Works as a spring @component or could be registered with the ObjectMapper etc.
Worth including in the project or documentation?
Many thanks
Mike G