Hello Everyone,
I am a new user to NHibernate.
I am using it with PostgreSQL.
When i try to load the database, i get the following exception:
could not insert: [Factory.LibraryBookInfo#3]
at NHibernate.Persister.EntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, SqlString sql, Object obj, ISessionImplementor session)
at NHibernate.Persister.EntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session)
at NHibernate.Impl.ScheduledInsertion.Execute()
at NHibernate.Impl.SessionImpl.Execute(IExecutable executable)at NHibernate.Impl.SessionImpl.ExecuteAll(IList list)
at NHibernate.Impl.SessionImpl.Execute()
at NHibernate.Impl.SessionImpl.Flush()
at NHibernate.Transaction.AdoTransaction.Commit()
at Factory.BookInfoFactory.SaveInstance(LibraryBookInfo bookInfo) in myclass.
where Factory is my assembly and LibraryBookInfo is the class in that assembly.
Same error occurs while i try to load. 'Could not Load'.
Anyone Plz help.
Thanks in Advance,
Dhivya N.
|