clone()
method and set each field manually. This can be pretty cumbersome to implement for complex objects or if you have to do this for a lot of them.
Showing posts with label Jackson. Show all posts
Showing posts with label Jackson. Show all posts
Deep Copy Java Objects through Serialization
When it comes to deep copy or cloning an object, the first thing that comes to mind is to override the
JSON Property Name Customization in Jackson using PropertyNamingStrategy

Subscribe to:
Posts (Atom)