-->
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.  [ 1 post ] 
Author Message
 Post subject: strange behavior when saving objects, no exception thrown
PostPosted: Sun Sep 03, 2006 2:59 am 
Newbie

Joined: Thu Aug 31, 2006 8:52 am
Posts: 1
My Hibernate version:
3.1.3

Name and version of the database
Mysql 5

Hi every body.
I had been using Hibernate 2 in my web application.I used to open and close the session for every transaction and I had no problem with save.
then I migrated to hibernate 3 specially for its default lazy loading mechanism in order to improve performance. now I use long term session that spans more then one transaction. now my problem is unstable bahavior when saving. it sometimes doesn't save with no exception thrown. sometimes objects are saved but after a period of time. I tried session.flush() but it doesn't always sloves the problem I eventhough tried to close the session when I could do it but this too didn't solve it. the problem I think, doesn't relate to the mapping since it is
seen for many kinds of objects of my domain model.

your immediate help is appreciated.


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

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.