my take on grails’s generate-domain-class

One of the things I liked in Rails was that you could define the properties for a model from the command-line. The groovy people seem to like only to generate the file, and then open it and add the properties manually. This is understandable if you also need to specify some constraints … but in the beginning, I think you only want to get something running.

This is why I wrote a script that can also take properties from the command line and turn them into properties for that specific domain class. The code can be found here : http://www.nabble.com/How-can-I-generate-fields-using-the-create-domain-class-script–to24802653.html.


0 Responses to “my take on grails’s generate-domain-class”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog Stats

  • 237,011 hits

%d bloggers like this: