If you need to type the same thing over and over, something's usually wrong with what you're doing...
This is all boilerplate and can easily take half a minute. How am I doing things wrong? Are you saying there's an easier way?
Or I can just type something like "./script/generate class Foo Bar" and be done with it and save like 15 seconds.