Vaadin 8 on Grails 3
  • Introduction
  • Project setup
    • Environment setup
      • Unix based systems
      • Windows
    • Creating Project
      • Command line
      • IntelliJ IDEA
    • Plugin Configuration
      • UI class
      • URL mapping
      • Production mode
      • Async support
      • Themes
      • SASS compilation
      • Widgetset compilation
      • Servlet class
      • Spring component scan
      • UI provider
      • Open session in view
    • Clean up
    • Best Practices
  • Database
    • GORM
      • Create Domain Model
      • Transactions
      • LazyInitializationException
      • Open Session In View I.
      • Open Session In View II.
      • Table Container
    • Groovy SQL
      • Create Sql Bean
      • Execute SQLs
    • MyBatis
      • MyBatis Configuration
      • Reading Data with MyBatis
    • JdbcTemplate
      • Create JdbcTemplate Beans
      • Using JdbcTemplate
    • Clean Up When Using Alternatives
  • UI
Powered by GitBook
On this page

Was this helpful?

  1. Database

GORM

PreviousDatabaseNextCreate Domain Model

Last updated 5 years ago

Was this helpful?

Grails Object Relational Mapping (GORM) provides easy way to define your database model and it comes for free with Grails.

The place you need to configure to get GORM up and running is application.yml. Grails will create bean dataSource based on what we set in application.yml. That bean is used for CRUD operations when we work with our database.

If you want to provide external configuration file, for example you deploy application to several production environments, you can define and set the database configuration there.

external config