These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Freeze while session.Flush
PostPosted: Mon Jul 09, 2007 4:51 am 
Newbie

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 17, 2007 10:44 am 
Newbie

Joined: Mon Jul 09, 2007 4:35 am
Posts: 3
I fix the problem by installing an Oracle 9.2 client
I don't know why but it works.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.