Home>

I want to copy a dto instance with the same field as another instance and change it partially.
Currently, new variables are packed into fields by field, but I'm thinking it would be easy. Please tell me if there is any way.

  • Answer # 1

    http://commons.apache.org/proper/commons-beanutils/

  • Answer # 2

    I wonder if you'll add a "easy to do" method or a constructor that takes itself as a parameter .

  • Answer # 3

    In the meantime, one of the ways to do it only with the standard class, usually not

    Memo of serialization (serialization) of Java

    I should have been able to implement the clone method

Trends