We still have the same problem of maintaining two or more separate config files. I agree these are solutions that work, but I am looking for a more maintainable solution. Something that maybe Hibernate doesn't do at the moment, I don't know.
From a code standpoint, I should be able to specify what objects cannot be accessed in any given JVM. Maybe something related to security? I don't know at this moment.
the-gtm wrote:
If you need all entities to be in your config.hbm.xml for hbm2java, then keep using this config.hbm.xml for build time.
Create a second config.hbm.xml for runtime without entities, and in your application add the classes (or .hbm.xml files) you will need to the Configuration.