Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 2.0.1.4000
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
2009-02-27 13:33:45,860 [2] FATAL CommonLogger - The following types may not be
used as proxies:
...Objs.User: method obj_address should be virtual
at NHibernate.Cfg.Configuration.Validate () [0x00000]
at NHibernate.Cfg.Configuration.BuildSessionFactory () [0x00000]
at Genius.NeighborhoodDirect.BusinessServices.NHibernateSessionManager..ctor (
) [0x00000]
at Objs.NHibernateSessionManager.get_Instance () [0x00000]
at Objs.ManagerBase`2[Objs.User,System.Int32]..ctor () [0x00000]
at Objs.UserManager..ctor () [0x00000]
at Objs.ManagerFactory.
GetUserManager () [0x00000]
at Objs.WebSite.SessionManager.Login (System.String login
, System.String password) [0x00000]
at Default.buttonLogin_Click (System.Object sender, System.Web.UI.ImageClickEv
entArgs e) [0x00000]
Name and version of the database you are using:
MySQL 5.1
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:DEBUG
the Application is initially created for Windows .NET environment and works well there.
We are trying to run it in Linux Mono 2.2-14.1. and having this error.
Setting lazy="false" fixes this issue. But developers want to keep lazy="true" for speed.
there is no method obj_address in our code.
please advise
thanks