Q | I have to create a standard Java bean class but don’t fancy having to type all those nasty getters and setters. Is there any code generator I can use? |
A | Enter all the private properties in the class and then right click and select Source | Generate Getters and Setters… |
Eclipse tip: creating getters and setters
Code Inquisitor
Comments Off on Eclipse tip: creating getters and setters
Mar 042010