please look here for the orginal method from matt raible.
Today, finally I made it!
Generating all the files for introducing a new Model to my Application(Spring, Hibernate, SpringMVC) takes me over more than one h.
Here is a litte gernerator for doing the basics (crud, daoInterface, model,(+vars), sql query, …. ) in less a second!!!
browse the source
or
download the eclipse project
currently the usage is:
java Generator –className name –variables “Type varName, Type varName, …” –BasePath “path”
for example:
–className PseudoRoom –variables “GregorianCalendar From, GregorianCalendar To, PropertyRooms room” –BasePath “/Users/nils/Documents/myapp1/” –templatePath “/Users/nils/Documents/workspace/generator/templates/” –genWebController “UserManager, RoomManager, ActionManager”
please look at the source for more information. It´s really easy.













Hey, I found your zip file and have taken the code and enhanced it a pretty fair amount. Are you interested in getting a zip file of it back?
Your blog is interesting!
Keep up the good work!