Model-Driven Development (MDD) is an approach to software development that advocates the use of models as the primary artifacts that drive the development process. Automation and abstraction are the two main pillars of MDD. Automation is mainly achieved in the form of code generation. Automated transformations are used to generate code from models. In this thesis, we establish that efficient code generation is a viable option and that it enhances productivity. Significant amount of code can be auto- generated if software patterns are automated using model transformations. We demonstrate the process of automation of a subset of enterprise-application patterns by making use of a state-of-the-art MDD tool called IBM Rational Software Architect. We illustrate the working and outcome of our automated patterns with the help of a case study: a Team Registration System.