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.Codelooru is a technology blog that covers a variety of topics ranging from languages like Java, Spring, Groovy, databases like Cassandra, Postgresql, cloud services like AWS, Azure, etc.
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)