Unique to the popular Grails web framework is its architecture. While other frameworks are built from the ground up, Grails leverages existing and proven technologies that already have advanced functionality built in. One of the key technologies in this architecture is Hibernate, on top of which Grails builds its GORM (Grails Object Relational Mapping) model layer. This provides Grails a persistence solution.
Published with the developer in mind, firstPress technical briefs explore emerging technologies that have the potential to be critical for tomorrows industry. Apress keeps developers one step ahead by presenting key information as early as possible in a PDF of 150 pages or less. Explore the future through Apress with Grails Persistence with GORM and GSQL.
This firstPress book covers Grails persistence with GORM, from defining your first model to the nature of transactions and advanced Hibernate querying. Other APIs and tools such as GSQL (Groovy SQL) are covered as well, as needed, to empower your Grails persistence efforts.
What youll learn
- Extend the Grails web framework into a broader, semienterprise framework by including and integrating Hibernatebased Java persistence, known as GORM.
- Use mappings to customize default behaviors and work with legacy schemas.
- Use constraints to define your object once and have those constraints enforced both in code and at the database level.
- Use advanced features of GORM and Hibernate Query Language (HQL) to simplify database querying and report generation.
- Debug and tune trips for GORM and Hibernate.
- Fill in the gaps with GSQL.
Who this book is for
This title is for those who have committed to dedicating some time to mastering Grails and are looking to move beyond the basics, and are especially interested in Grails and Groovy persistence for some limited transaction handling and/or accessing databases.
Table of Contents
- Defining the Model in GORM
- Customizing GORM Mapping and Enforcing Data Integrity
- Querying with GORM and HQL
- GORM Usage in Grails
- Filling in the Gaps with Groovy SQL and Springs JDBC Support