Who Can Benefit
This Groovy and Grails workshop is suitable for anyone who is interested in the dynamic language landscape, but has a particular focus on Java developers looking to explore the possibilities that powerful dynamic languages like Groovy offer.
Prerequisites
Skills Gained
Upon successful completion of the course, the student should be able to:
- Explain the basics of the Groovy language
- Leverage Groovy's power features, including Groovy's powerful processing primitives to make writing shell and build scripts easy
- Use domain-specific languages
- Leverage Grails' Hibernate-powered ORM layer
- Use Grails' MVC components
- Integrate Grails with existing Java components and services
Course Content
Module 1 - The Groovy Tour
- Groovy for Java developers - The basics
- The syntax similarities
- New language constructs
- Groovy Strings
- Closures
- What makes Groovy tick?
- Groovy dynamism
- Meta-programming
- Embedding Groovy
Module 2 - Getting Started With Grails
- The Grails introduction
- Background, foundations and motivations
- Current project status
- Why choose Grails for your project?
- Grails basics
- The Project infrastructure
- Running Grails scripts
- Creating a basic CRUD application
Module 3 - The Grails Domain Model
- Understanding domain models
- Domain-driven development with Grails
- Applying domain constraints
- Defining domain relationships
- Working with persistence methods
- Saving, deleting, and updating
- Using dynamic finders
- Advanced querying with criteria and HQL
Module 4 - The Web Layer
- Orchestrating requests with controllers
- Rendering responses
- Handling data binding and validation
- Groovy views with GSP
- Supplying the model
- Logic, iteration, and filtering
- Advanced site layouts with SiteMesh
- Separating logic and content with Tag libraries
- Dynamic tag library basics
- Logical and iterative tags
Module 5 - Java Integration
- Java Enterprise integration
- Packaging and deployment onto Java Platform, Enterprise Edition (Java EE) containers
- Using Enterprise JavaBeans (EJB 3 entities with Grails
- Grails and the Servlet environment
- Technology stack integration
- Wiring it all together with the Spring DSL
- Scripting Hibernate with GORM




