Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Jun 15, 2010
  1. Updated .gitignore.

  2. Updated a comment.

  3. Updated to Grails 1.3.1.

  4. Excluded some transitive dependencies of Dozer that were causing some

    problems in one of my projects with Grails 1.3.2. They are 'provided'
    scope, which means Ivy includes them with a 'compile' configuration.
Commits on Jan 27, 2010
  1. DTO generation wasn't working for domain classes that had no package

    - quite an oversight! This has now been fixed and there are new tests
    to insure against regressions.
Commits on Nov 24, 2009
  1. Added support for alternative indentation in the generated DTO files.

    Also updated the CLI tests for the new toString() implementation on the
    generated DTO classes.
  2. Reverted the PrintWriter change, since I realise the use of Writer.wr…

    and 'eol' was deliberate.
    This reverts commit 0a42bde.
  3. Now using a PrintWriter to generate the DTO files. This is much cleaner

    since the code doesn't have all those ${eol}s dotted around now.
  4. Updated Grails version.

  5. Add toString to generated DTOs

    Anders Norgaard authored
Commits on Oct 14, 2009
  1. You can now specify Dozer mapping files via the config setting

      dto.mapping.files = [ "classpath:..." ]
    Each entry in the list should be a Spring resource identifier.
Commits on Oct 9, 2009
  1. Added a toDTO(Class) method to domain objects that can be used when

    the DTO package does not match that of the domain object. I have also
    added the same method to collections, but rather than specifying the
    type of the target collection, you pass in the class of the DTOs that
    will be going into it. For example:
Commits on Oct 8, 2009
  1. In addition to the new command-line options, the generate-dto also

    accepts package transformations via a build setting:
      dto.package.transforms = [ "from.pkg": "to.pkg" ]
    Just put it in your BuildConfig.groovy file. You can have as many package
    transforms as you like!
Commits on Oct 7, 2009
  1. The generate-dto command now accepts some extra arguments (--pkg,

    --oldpkg, --newpkg) that allow the user to control what packages the
    DTO classes are placed in.
  2. Adding "as DTO" and toDTO() to collections and maps is currently unwo…

    because there is no way to specify the DTO type in the collection/map. So
    I have removed the methods.
Commits on Oct 6, 2009
  1. Updated the Eclipse files.

Commits on Oct 1, 2009
  1. Updated the ignores.

  2. One of the key points about DTOs is that they should be serialisable.

    I seemed to forget this, so in version 0.1 of the plugin, the DTOs
    don't implement Serializable...doh! Fixed by making the DTO interface
    extend it.
  3. Added README for GitHub.

  4. Implemented toDTO() and "as DTO" for domain classes. Also added integ…

    tests in the test project to ensure they work.
Something went wrong with that request. Please try again.