Last active
December 17, 2018 17:40
-
-
Save mrapczynski/5479548 to your computer and use it in GitHub Desktop.
Example of creating a Hibernate configuration class for the Grails platform to allow developer control which tables (via domain objects) are given the GORM treatment during startup of a Grails application. I created it to be simple object-oriented method where I can mix domain objects that were either (a) custom to the application and needed sch…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Hibernate Configuration for Banner (one or more tables Grails should never try to modify) | |
edu.fhda.grails.hibernate.banner.ignoreTables = [ | |
"STVTERM" | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example data source configuration | |
dataSource { | |
pooled = true | |
driverClassName = "oracle.jdbc.OracleDriver" | |
configClass = edu.fhda.grails.hibernate.BannerHibernateConfiguration | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the latest GORM Version 6.1 GrailsAnnotationConfiguration is not available anymore. See http://gorm.grails.org/latest/hibernate/api/org/grails/orm/hibernate/cfg/package-summary.html
Which class from the summary replaces GrailsAnnotationConfiguration an canbe use in 6.1 to implement the same behaviour?