title: How do I map Grails Domain Classes to DTOs?
body: <p>I have a Grails project with domain classes. This persistent classes should be mapped to Java DTOs. I found a very old Grails plugin <a href="http://grails.org/plugin/dto" rel="nofollow">here</a> which does not really solves the problem. </p>
  
  <p>Is there a plugin or a way to:</p>
  
  <ul>
  <li>annotate domain class properties which are mapped to the corresponding DTO class?</li>
  <li>set a custom mapping function for class properties?</li>
  <li>an easy way to convert a DTO into a domain class and vice versa? </li>
  </ul>