|
Hello!
I use Nhibernate and log4net
Here is the logging statement:
[Header]\r\n2007-08-24 13:34:03,127 [1] INFO NHibernate.Cfg.Environment NHibernate 1.2.0.4000 (1.2.0.4000)
2007-08-24 13:34:03,158 [1] INFO NHibernate.Cfg.Environment Bytecode provider name : lcg
2007-08-24 13:34:03,158 [1] INFO NHibernate.Cfg.Environment Using reflection optimizer
2007-08-24 13:34:03,158 [1] INFO NHibernate.Cfg.Configuration Searching for mapped documents in assembly: NHibernateTest
2007-08-24 13:34:03,174 [1] INFO NHibernate.Cfg.Configuration Adding embedded mapping document: NHibernateTest.User.hbm.xml
2007-08-24 13:34:03,174 [1] INFO NHibernate.Cfg.Configuration Mapping resource: NHibernateTest.User.hbm.xml
2007-08-24 13:34:03,236 [1] INFO NHibernate.Dialect.Dialect Using dialect: NHibernate.Dialect.MySQLDialect
2007-08-24 13:34:03,283 [1] INFO NHibernate.Cfg.HbmBinder Mapping class: NHibernate.Examples.QuickStart.User -> users
2007-08-24 13:34:03,330 [1] INFO NHibernate.Cfg.Configuration processing one-to-many association mappings
2007-08-24 13:34:03,330 [1] INFO NHibernate.Cfg.Configuration processing one-to-one association property references
2007-08-24 13:34:03,330 [1] INFO NHibernate.Cfg.Configuration processing foreign key constraints
[Footer]\r\n
I have following Problem:
the following types may not be used as proxies
method set_ID should be virtual
etc... should be virtual
So I made all methods virtual, but the same Message occurs...
I tried also another way:
All classes and collections with 1.2 are now loaded lazily by default. Consequently, if you run your application without modifying the lazy attribute, you'll most likely receive a number of "method x should be virtual." To resolve this, set lazy="false" for each class and collection that you do not want loaded lazily.
After setting lazy = "false" the following Message is shown:
"unknown entity class: Nhibernate.Examples.Quickstart.User"
although i have changed to 2.2
hibernate-mapping xmlns="urn:nhibernate-mapping-2.2
Can anybody help me?!
|