Unknown entity class
配置文件没有写好
未处理 NHibernate.MappingException
Message="Unknown entity class: DebtVO.LoginVO"
Source="NHibernate"
StackTrace:
在 NHibernate.Impl.SessionFactoryImpl.GetPersister(Type theClass)
在 NHibernate.Impl.SessionImpl.GetClassPersister(Type theClass)
在 NHibernate.Impl.SessionImpl.GetPersister(Object obj)
在 NHibernate.Impl.SessionImpl.SaveOrUpdate(Object obj)
在 MyDebtDAL.DALImpl.SaveEntity(IList entities) 位置 C:\Documents and
Settings\Administrator\My Documents\Visual Studio
2005\Projects\DebtHibernate\MyDebtDAL\DALImpl.cs:行号 45
在 MyDebtDAL.DALImpl.SaveEntity(IVO entity) 位置 C:\Documents and
Settings\Administrator\My Documents\Visual Studio
2005\Projects\DebtHibernate\MyDebtDAL\DALImpl.cs:行号 36
在 DebtHibernate.Form1.button1_Click(Object sender, EventArgs e) 位置 C:\Documents and
Settings\Administrator\My Documents\Visual Studio
2005\Projects\DebtHibernate\DebtHibernate\Form1.cs:行号 30
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32
clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMs
oComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
在 System.Windows.Forms.Application.Run(Form mainForm)
在 DebtHibernate.Program.Main() 位置 C:\Documents and Settings\Administrator\My
Documents\Visual Studio 2005\Projects\DebtHibernate\DebtHibernate\Program.cs:行号 17
在 System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity,
String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
未处理 NHibernate.ADOException Could not save object
mysql 类 没有引用 抛了个
未处理 NHibernate.ADOException
Message="Could not save object"
Source="NHibernate"
StackTrace:
在 NHibernate.Impl.SessionImpl.SaveWithGeneratedIdentifier(Object obj, CascadingAction
action, Object anything)
在 NHibernate.Impl.SessionImpl.Save(Object obj)
在 NHibernate.Impl.SessionImpl.SaveOrUpdate(Object obj)
在 MyDebtDAL.DALImpl.SaveEntity(IList entities) 位置 C:\Documents and
Settings\Administrator\My Documents\Visual Studio
2005\Projects\DebtHibernate\MyDebtDAL\DALImpl.cs:行号 45
在 MyDebtDAL.DALImpl.SaveEntity(IVO entity) 位置 C:\Documents and
Settings\Administrator\My Documents\Visual Studio
2005\Projects\DebtHibernate\MyDebtDAL\DALImpl.cs:行号 36
在 DebtHibernate.Form1.button1_Click(Object sender, EventArgs e) 位置 C:\Documents and
Settings\Administrator\My Documents\Visual Studio
2005\Projects\DebtHibernate\DebtHibernate\Form1.cs:行号 30
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32
clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMs
oComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
在 System.Windows.Forms.Application.Run(Form mainForm)
在 DebtHibernate.Program.Main() 位置 C:\Documents and Settings\Administrator\My
Documents\Visual Studio 2005\Projects\DebtHibernate\DebtHibernate\Program.cs:行号 17
在 System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity,
String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()
NHibernate.QueryException
Message="* only allowed inside aggregate function in SELECT [SELECT * FROM DebtVO.LoginVO]"
改了个 SELECT U FROM USERS U
未处理 NHibernate.QueryException
Message="* only allowed inside aggregate function in SELECT [SELECT * FROM DebtVO.LoginVO]"
Source="NHibernate"
QueryString="SELECT * FROM DebtVO.LoginVO"
StackTrace:
在 NHibernate.Hql.SelectParser.Token(String token, QueryTranslator q)
在 NHibernate.Hql.ClauseParser.Token(String token, QueryTranslator q)
在 NHibernate.Hql.ClauseParser.End(QueryTranslator q)
在 NHibernate.Hql.PreprocessingParser.End(QueryTranslator q)
在 NHibernate.Hql.ParserHelper.Parse(IParser p, String text, String seperators,
QueryTranslator q)
在 NHibernate.Hql.QueryTranslator.Compile()
在 NHibernate.Hql.QueryTranslator.Compile(ISessionFactoryImplementor factory,
IDictionary replacements, Boolean scalar)
在 NHibernate.Impl.SessionFactoryImpl.GetQuery(String queryString, Boolean shallow)
在 NHibernate.Impl.SessionImpl.GetQueries(String query, Boolean scalar)
在 NHibernate.Impl.SessionImpl.Find(String query, QueryParameters parameters)
在 NHibernate.Impl.QueryImpl.List()
在 MyDebtDAL.DALImpl.SelectAll(Type theType) 位置 C:\Documents and
Settings\Administrator\My Documents\Visual Studio
2005\Projects\DebtHibernate\MyDebtDAL\DALImpl.cs:行号 32
在 DebtHibernate.Form1.button1_Click(Object sender, EventArgs e) 位置 C:\Documents and
Settings\Administrator\My Documents\Visual Studio
2005\Projects\DebtHibernate\DebtHibernate\Form1.cs:行号 40
在 System.Windows.Forms.Control.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnClick(EventArgs e)
在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32
clicks)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ButtonBase.WndProc(Message& m)
在 System.Windows.Forms.Button.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMs
oComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
在 System.Windows.Forms.Application.Run(Form mainForm)
在 DebtHibernate.Program.Main() 位置 C:\Documents and Settings\Administrator\My
Documents\Visual Studio 2005\Projects\DebtHibernate\DebtHibernate\Program.cs:行号 17
在 System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
在 System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity,
String[] args)
在 Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
在 System.Threading.ThreadHelper.ThreadStart_Context(Object state)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
在 System.Threading.ThreadHelper.ThreadStart()