These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Problems with Nhibernate 1.2.0.GA and log4net
PostPosted: Fri Aug 24, 2007 7:42 am 
Newbie

Joined: Fri Aug 24, 2007 7:28 am
Posts: 1
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?!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 24, 2007 11:51 am 
Newbie

Joined: Mon Aug 13, 2007 11:51 am
Posts: 10
Hello,

You could try to set for class="Nhibernate.Examples.Quickstart.User,AssemblyName"

AssemblyName reflecting the name of the assembly containing your class.

I'm not sure, but for me it works.

Bye
Didier


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.