Project

General

Profile

Wiki

This plugin is an enhanced version of Peter Ledbrooks "grails dto plugin":http://www.grails.org/plugin/dto

Summary of enhancements

  • updated dozer dependency to latest version (5.3.2)
  • dtos are generated with the version property included
  • to exclude the version property annotate the class with @DtoNoVersion
  • fields may be annotated with @DtoIdOnly, which generates not the association itself but only the id of the association
  • all fields annotated with @DtoEquality annotation, will be part of generated hashCode and equals method
  • to let a dto class implement extra interfaces, annotate the domain class with @DtoImplements
  • to ignore an association, annotate the field with @DtoIgnore
  • experimental fromDTO method, which converts the dto back in a domain object, honoring existing domain instances