I have a Grails application using some proprietary NoSQL DB. I have the hibernate plugin disabled. I have many domain classes with lots of constrains defined and with own implementation of save() and get() that calls some java services that are dealing with persistence. Everything is working fine.
But now, we have a deal with a client to save some things directly into their MySQL DB. Simple thing at first. I configured their DB connection, enabled hibernate plugin and I created a new domain class to deal with that. Everything is working fine in a test app, but when i enabled the hibernate plugin into main project, is not starting anymore.
Hibernate is trying to map all domains to tables in the DB and of course they do not exists (because are using the NoSQL DB).
My questions is: Can I enable hibernate just for several domains? Or can I instruct some domain to not use hibernate/gorm? Or per package? How is Grails handling multiple DBs for same project?