Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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

    authored
  2. Updated a comment.

    authored
  3. Updated to Grails 1.3.1.

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

    authored
    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

    authored
    - 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.

    authored
    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…

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

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

    authored
  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

    authored
      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

    authored
    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:
    
      User.findAllByAge(20).toDTO(UserDTO)
Commits on Oct 8, 2009
  1. In addition to the new command-line options, the generate-dto also

    authored
    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,

    authored
    --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…

    authored
    …rkable
    
    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.

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

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

    authored
    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.

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

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