I wish Hibernate configuration files supported XML includes.
I had to put a hack around configuration loads, using an InputStream which interprets my non-standard #include syntax (but now my XML editors complain about it, as it is not DTD-kosher).
In my case, I am using such includes to "package" groups of mapping files (roughly corresponding to Java class packages), so that individual, application level configuration files do not have to change whenever one of the packages adds a new object.
But it can be used to include a repeated mapping (base class) portions (we do not have too many of those).
{don't forget to rate IF this posting helps}.
Martin.
|