If your are interested in going a bit further with code generation and getting into model driven software development you should have a look at openArchitectureWare.
If you work through the Getting Started tutorial you should get up to speed pretty quickly.