Sep 5th, 2011, 07:23 AM
make hibernate to create table from domain classes of plugins even with war file
I installed some plugins to my Grails application that bring their own domain classes with it like security-ui or the paypal plugin. In development environment Grails / Hibernate automatically does create table for every domain class, also for the ones of the installed plugins.
When I make a war file and run it, then only my own domain classes are schema-exported i.e. taken to create table. The tables for the plugins (like buyer_information, payment and payment_item for the paypal plugin) are missing. This happens in the test environment with mysql doing "test run-war" as well as in prod when deploying the war file to Tomcat and Oracle.
Seems that the hibernate schema export only looks for "own" application domains when running from the war file.
Where can I tell the warring to also schema-export domain classes from the plugins used?
Or am I something missing?
Thank you for any hint,