Hi,
Is it possible to import XML mapping snippets and re-use these across several hibernate mapping files ?
The only thing I came across is the Entity Resolver feature and it only seems to be recommended for custom type definition imports. See the following link:
http://www.hibernate.org/hib_docs/reference/en/html/mapping.html#mapping-declaration-entity-resolution
Im using hibernate 3.2.6 and I want to import the whole class mapping element and override the id definition. In one usecase I use a sequence generator and the other the assigned generator. I would like to avoid duplicating the whole class mapping as this is the only difference.
The reason I have this, is to copy a row from 1 schema to the other but only 1 schema is the owning schema and is entitled to generate the ids.
I know this sounds like a database replication scenario but I have to do with the current company infrastructure.
Thanks,
-Guillaume