title: Copy specific properties using spring BeanUtils
body: <p>I have a model class which has around 45 properties. I have created another DTO class which has exactly the same properties. </p>
  
  <p>At runtime, some requirements dont need me to show all the properties to the user. Hence i want to copy some properties from my model class to my DTO class and then send that object to the client. </p>
  
  <p>I am using Spring.s BeanUtils.copyproperties. But here  i only see the option to ignore properties which i dont want. as the my list of unwanted properties is long, is there a way in which i can specify only the list i want. </p>
  
  <p>I searched on the net and found a solution</p>
  
  <p>"org.springframework.beans.BeanUtils.copyProperties(Object source, Object target, Class editable) throws BeansException</p>
  
  <p>Ensure the target implements the interface editable which defines the properties which would be copied."</p>
  
  <p>But i am not able to work my head around this editable interface. I tried using an interface which has all the properties I want and tried to use it here, but it gave me an error saying that it is expecting a class.  Can some body help me with the editable interface stuff</p>