-->
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: Weird update problem
PostPosted: Mon Jun 08, 2009 3:27 pm 
Newbie

Joined: Mon Jun 08, 2009 2:01 pm
Posts: 1
Hi all,

Im using Hibernate JPA/Postgresql with Icefaces as a renderer.
I've got a problem updating an object, here is what happens:

I have a customer with a name, I can edit it from a ice:dataTable (filled by a ListDataModel in the code behind) by clicking on the edit link on each row of my table.

Then I wanna change his name, and things are going right... or not. I mean the updates will work 20 times and then sudenly wont anymore, or juste after two times... it's completely random.

Actually the customer's name field is not changed in the database (Postgresql) and when I check my customer's name in the code (with log4j) right after the commit, it says the right modification, but nothing has changed in the database. And I'm in a situation where the object in the hibernate cache is not synchronised with the one in the database.

Finally, if i move to another page of my application and come back to edit my customer again, it'll work... till it crashes again....

Is that something to do with the hibernate cache? The transaction with the database? The database itself (connection lost and then impossible to do anything till i open a new session with it?)? I'm lost!
Thanks in advance for your help,


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.