Vaadin 7 on Grails 2.x
  • Introduction
  • Project setup
    • Command Line
    • IntelliJ IDEA
    • Eclipse
    • NetBeans
    • Plugin Configuration
    • 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
      • Execute SQLs
    • MyBatis
      • Configuration
      • Basics
    • JdbcTemplate
      • Create Beans
      • Usage
    • Clean Up With Alternatives
  • Architecture
    • Model View Presenter
  • Spring Autowiring
    • Create Simple Application
    • Application With Navigator
  • UI
    • Re-using GORM Validations
    • Async Push
    • Multiple application
    • SASS Compilation
    • Widgetset Compilation
  • Spring Security
    • Spring Security Dependency
    • Spring Security Basics
    • Secured Navigator
  • Localization
    • Localization Basics
    • Custom MessageSource
  • REST
    • Without using root URL
    • Using root URL for Vaadin app
  • Plugin development
    • Github
    • Development
Powered by GitBook
On this page
  • Step 1
  • Step 2

Was this helpful?

  1. Database

Clean Up With Alternatives

With alternative database frameworks, like Groovy Sql, MyBatis, JdbcTemplate, we do not need some GORM libraries, like hibernate, let's remove them and maybe exclude some others.

Before you start excluding and removing dependencies, let's run grails dependency-report compile command to see what libraries are loaded for compile scope.

Step 1

Remove runtime ":hibernate4:4.x" or runtime ":hibernate:3.x" from BuildConfig.groovy.

Step 2

Add exclude for grails-plugin-databinding in BuildConfig.groovy.

grails.project.dependency.resolution = {
    inherits("global") {
        'grails-plugin-databinding'
    }
PreviousUsageNextArchitecture

Last updated 5 years ago

Was this helpful?