Joined: Mon Jul 09, 2007 4:35 am Posts: 3
|
Hello,
I am working with NHibernate 1.2 / .Net 2 and Oracle 8i.
I am just using one "simple" table without any relationship or constraintes.
The generator id is defined as <assigned>
I can get data from this table with session.Load( typeof (xxx)) and it works fine.
The problem is that I can't insert row in the table.
The code is :
ISession session = SessionFactory.OpenSession();
ITransaction tx = session.BeginTransaction();
Media m = new Media();
try
{
m.id = 1;
m.lib = "toto";
session.Save(m);
session.Flush();
tx.Commit();
}
catch(Exception ex)
{
tx.Rollback();
MessageBox.Show(ex.message);
}
There is no error message or exception.
There is just a "freeze" in the session.Flush.
Thanx to help me
Best regards
|
|