I am currently trying to move the hibernate store, store interface, store factory and configuration files to their own "objectstore.dll" so it can be easily reused for future projects. Hibernate worked fine before when the files belonged to the same namespace and project as the rest of the common code. After moving these to thier own project I cannot get hibernate to recognize any entity objects.
I have looked through the forums, google, and the documentation to no avail. If anyone has any suggestions on how to solve this I would be very greatful.
Error Given
DotNetCommonTests.TestHibernate.HibernateStoreTest.TestDeleteEntity : NHibernate.MappingException : Unknown entity class: CommonLogic.HibernateTestEntity
The following is the nhibernate.config (minus the connection info):
Mapping documents:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.0" >
<session-factory name="chat">
<!-- properties -->
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property>
<property name="connection.connection_string">Data Source=;user id=;password=</property>
<property name="show_sql">false</property>
<property name="dialect">NHibernate.Dialect.OracleDialect</property>
<!-- mapping files -->
<mapping assembly="CommonLogic" />
</session-factory>
</hibernate-configuration>
</configuration>
Name and version of the database you are using:
Oracle 8i
Debug level Hibernate log excerpt:
2006-11-14 15:06:24,105 [TestRunnerThread] INFO ObjectStore.HibernateConfiguration [(null)] <(null)> - Loading hibernate config file: file:\C:\svn\common\dotnet\trunk\src\DotNetCommonTests\bin\Debug\nhibernate.config
2006-11-14 15:06:24,405 [TestRunnerThread] INFO NHibernate.Cfg.Configuration [(null)] <(null)> - Searching for mapped documents in assembly: CommonLogic
2006-11-14 15:06:24,405 [TestRunnerThread] INFO NHibernate.Cfg.Configuration [(null)] <(null)> - Configured SessionFactory: chat
2006-11-14 15:06:24,506 [TestRunnerThread] INFO NHibernate.Dialect.Dialect [(null)] <(null)> - Using dialect: NHibernate.Dialect.OracleDialect
2006-11-14 15:06:24,526 [TestRunnerThread] INFO NHibernate.Cfg.Configuration [(null)] <(null)> - processing one-to-many association mappings
2006-11-14 15:06:24,526 [TestRunnerThread] INFO NHibernate.Cfg.Configuration [(null)] <(null)> - processing one-to-one association property references
2006-11-14 15:06:24,526 [TestRunnerThread] INFO NHibernate.Cfg.Configuration [(null)] <(null)> - processing foreign key constraints
2006-11-14 15:06:24,526 [TestRunnerThread] INFO NHibernate.Dialect.Dialect [(null)] <(null)> - Using dialect: NHibernate.Dialect.OracleDialect
2006-11-14 15:06:24,536 [TestRunnerThread] INFO NHibernate.Cfg.SettingsFactory [(null)] <(null)> - use outer join fetching: True
2006-11-14 15:06:24,536 [TestRunnerThread] INFO NHibernate.Connection.ConnectionProviderFactory [(null)] <(null)> - Intitializing connection provider: NHibernate.Connection.DriverConnectionProvider
2006-11-14 15:06:24,536 [TestRunnerThread] INFO NHibernate.Connection.ConnectionProvider [(null)] <(null)> - Configuring ConnectionProvider
2006-11-14 15:06:24,536 [TestRunnerThread] INFO NHibernate.Cfg.SettingsFactory [(null)] <(null)> - Optimize cache for minimal puts: False
2006-11-14 15:06:24,536 [TestRunnerThread] INFO NHibernate.Cfg.SettingsFactory [(null)] <(null)> - Query language substitutions: {}
2006-11-14 15:06:24,536 [TestRunnerThread] INFO NHibernate.Cfg.SettingsFactory [(null)] <(null)> - cache provider: NHibernate.Cache.HashtableCacheProvider
2006-11-14 15:06:24,536 [TestRunnerThread] INFO NHibernate.Cfg.Configuration [(null)] <(null)> - instantiating and configuring caches
2006-11-14 15:06:24,546 [TestRunnerThread] INFO NHibernate.Impl.SessionFactoryImpl [(null)] <(null)> - building session factory
2006-11-14 15:06:24,546 [TestRunnerThread] INFO NHibernate.Impl.SessionFactoryObjectFactory [(null)] <(null)> - Factory name:chat
|