I have recently started using Eclipse for developing some Google App Engine code, I'm at the early stages where I am creating lots of entity / domain classes. My usual pattern is to create the domain class, add the private properties, then I go through the IDE menus to
- Generate constructors based on fields
- Generate default constructor
- Generate getters and setters
- Generate hashcode / equal functions
- Generate toString functions
What seems crazy to me is that I can't just go to a combined view that enables me to specify the fields and have checkboxes for each of the items listed above, in one step.
I guess Groovy would give me a resolution to number 3 - as it will generate automatic getters and setters, but I don't want to add anything 'new' to my learning curve for a quick project.
Is there a way in Eclipse to do this code-generation quickly - rather than my manual 5 steps that are driving me crazy?! I would also be interested to know if this feature is available in Netbeans as I also use this heavily.
Thanks, Rob.