If all the objects within the bean implement Serializable
interface, will BeanUtils.cloneBean()
do a deep copy?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Use SerializationUtils.clone method from the Apache Commons Lang for the deep copy. It copies the entire class hierarchy.
No,
cloneBean()
does shallow copy only. If you want deep copy. You may refer this link which has technique to do deep copy.