mulesoft/raml-jaxrs-codegen — pull request #17 by davidsiu (2014-06-18 03:13:29+00:00)
Title: Additional config options and better resource naming

Changes:

1) Currently, jsonschema2pojo treats all integers as integers which conflicts with raml-jaxrs-codegen's interpretation of integers as longs. Added the maven configuration option "" which you can set to true to force jsonschema2pojo to treat all integers as longs.

In your pom.xml file, you should just be able to specify: true

2) Resources and Models are currently being named the same thing and its really confusing. Updated the code-gen and example to append the word "Resource" to the end of all resource interfaces so that we can more easily work with models and resources in the same file.

3) Currently, models are generated and put in a package called "model". Raml-jaxrs-codegen effectively creates Data Transfer Options. It would be nice to put these in a package called "dto" instead. Having it in the "model" package is not great as it promotes the Anemic Domain Model pattern as described here. http://www.martinfowler.com/bliki/AnemicDomainModel.html . To support this, I've added a new maven configuration option "" which you may use to override the default package location for the models.

In your pom.xml file, you should just be able to specify: dto