Hi Community,
I tried to insert two objects with nhibernate. All works fine when I insert the objects separately:
Code:
ISession s1 = OpenSession();
ITransaction t1 = s1.BeginTransaction();
s1.Save(createProcessDefinition());
s1.Save(createStartState());
t1.Commit();
s1.Close();
But then I added the Object startState to processDefiniton I got an exception by committing the session.
Code:
ISession s1 = OpenSession();
ITransaction t1 = s1.BeginTransaction();
ProcessDefinitionImpl process = createProcessDefinition();
process.StartState=createStartState();
s1.Save(process);
t1.Commit();
s1.Close();
The exception text:
SQL insert, update or delete failed (expected affected row count: 1, actual affected row count: 0). Possible causes: the row was modified or deleted by another user, or a trigger is reporting misleading row count.
Could this be a bug?
Regards
Philipp