Hibernate needs a complete meta-modell of the provided entities and can't create just "stubs" for some of them.
Up vote 1 down vote favorite 1 share g+ share fb share tw.
We have an existing and working database created from hbm mapping files. We want to create some new tables for an optional feature. One option is that these new tables always exist but we would prefer for the tables and POJOs to only be created on request.
My issue is that these tables/POJOs have dependancies on existing tables/POJOs. I have created a mapping file but I can only get it to work if it creates create/drop commands for the existing tables as well as the new ones, along with their POJOs as well. Can I avoid this existing table/POJO for Group appearing in the creation script.
In the example below Group is an existing table/POJO. False The ant target to generate this is below and only works if the dependant objects are listed: Without the dependant reference to Group then I get the error: BUILD FAILED C:\projects\foo\db-build. Xml:187: Schema text failed: An association from the table DISCON_TEST refers to an unmapped class: uk.co.foo.domain.dfwv.
Group Hibernate version:3.1.2 hibernate nhibernate-mapping mapping link|improve this question asked Mar 31 '09 at 15:43Bill Comer18614 50% accept rate.
I could and that would work but the builds are created from a build server so I would have to commit that change and run the same build target. At the moment at least I have a target that the build server can run for the new functionality without having to make any code changes. – Bill Comer Apr 3 '09 at 7:57 I guess with those new - but deactivated - entities comes additional business logic, do you keep that "deactivated" too?
Wouldn't it break too, because the logic (will sometime)combines old and new entities? Sounds like maintance hell ;-) – Michael Lange Apr 3 '09 at 18:31.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.