I'm having a situation here where I have a web application backend library, based on NHibernate, which is shared among multiple web applications. Each of these web apps has each own, but very similar databases. The difference is: some tables might not exist in all databases.
The applications with the missing tables does of course not try to access these tables, but they all share the same .hbm.xml file (which is embedded in the backend library).
Now, the problem is that when NHibernate starts up and loads the persisters I get an error about missing object in database, even before the first real request for persistent objects. Is this correct, does NHibernate check the tables during initialization?
Is there an easy way to avoid this, like a configuration option or something?
|