Permalink
Switch branches/tags
Commits on Jun 15, 2010
  1. Updated .gitignore.

    committed Jun 15, 2010
  2. Updated a comment.

    committed Jun 15, 2010
  3. Updated to Grails 1.3.1.

    committed Jun 14, 2010
  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.
    committed Jun 14, 2010
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.
    committed Jan 27, 2010
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.
    committed Nov 24, 2009
  2. Reverted the PrintWriter change, since I realise the use of Writer.wr…

    …ite()
    
    and 'eol' was deliberate.
    
    This reverts commit 0a42bde.
    committed Nov 24, 2009
  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.
    committed Nov 24, 2009
  4. Small STS project file change.

    committed Nov 24, 2009
  5. Updated Grails version.

    committed Nov 24, 2009
  6. Add toString to generated DTOs

    Anders Norgaard committed Nov 24, 2009
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.
    committed Oct 14, 2009
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:
    
      User.findAllByAge(20).toDTO(UserDTO)
    committed Oct 9, 2009
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!
    committed Oct 8, 2009
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.
    committed Oct 7, 2009
  2. Adding "as DTO" and toDTO() to collections and maps is currently unwo…

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

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

    committed Oct 1, 2009
  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.
    committed Oct 1, 2009
  3. Added README for GitHub.

    committed Oct 1, 2009
  4. Implemented toDTO() and "as DTO" for domain classes. Also added integ…

    …ration
    
    tests in the test project to ensure they work.
    committed Oct 1, 2009