gorm-hibernate5
gorm-hibernate5 copied to clipboard
schema-export does not work in plugins
Problem
If you create a plugin that defines domain objects using gorm hibernate5:6.1.12 calling grails run-command schema-export
fails with Command execution error: org.hibernate.tool.hbm2ddl.SchemaExport: method <init>()V not found
If you create an app and try grails schema-export
, it works as expected.
If you use the plugin in an application, grails schema-export
also works as expected.
Test project with readme: https://github.com/pmcneil/testg3plugin
Use case for schema-export in a plugin: existing grails 2 plugin https://github.com/bio-org-au/nsl-domain-plugin uses schema-export to build an executable schema to set up new shard databases and create upgrade scripts.
Any response would be appreciated, I'll need to get on and implement some sort of work around so knowing if this might be fixed or it's just the way it is now would help me greatly. Cheers.