I have the multitier web-application.
It has the REST-service and the WEB-component on the additional external server.
But both are use the same domain classes (I write the standalone plugin for them).
The REST-service is needed database access and it has Hibernate plugin in the dependencies.
But WEB-component doesn't needed that plugin because it is only REST-client.
After some time of project existence, we are comprehended that we are needed Spring Security.
And the Security plugin demands database access from us.
So, on Grails 2.2 I've added hibernate plugin to project, because of the same domain classes between projects.
Though that was wrong, but that works.
Now I'm trying to upgrade to Grails 2.4 and Hibernate4 and I'm still having that problem.
WEB-component Grails has tried to create/update tables for domain and writes error logs on fail.
So, here is the question.
Is there are exists any way to exclude/include some classes from hibernate processing?
I want to say "Hey, hibernate, please do what you want with Spring Security and don't touch my own domain classes".
Something like static mapWith = "none"
but in Application Config?
问问题
153 次