-->
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.  [ 3 posts ] 
Author Message
 Post subject: Strange data corruption.
PostPosted: Fri Feb 10, 2006 2:23 pm 
Newbie

Joined: Fri Nov 19, 2004 1:41 pm
Posts: 2
Hi,

I'm having some really strange data corruption problems using Hibernate 2 with MySQL. Every so often, an UPDATE statement is sent to the database setting some column to a really small value (~ e-10).

I believe this may be Hibernate's fault and was wondering if anyone has experienced anything similar.

I'm pretty sure the problem is not in my code, since some of the updates are issued on tables whose corresponding classes have no way of being saved/updated programatically.

TIA


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 15, 2006 5:14 am 
Beginner
Beginner

Joined: Mon Jan 30, 2006 2:28 am
Posts: 47
Location: INDIA
Hello,
My suggestion is,

1.Try to send your data type of that inserted column.
2.Or Write static query for update and check the given value is updated or
check the data type.
3.Or Pls check your database version is Hibernate community supported or
not.

Thanks

_________________
A.Edward Durai
"The things which are impossible with men are possible with God."


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 15, 2006 1:41 pm 
Newbie

Joined: Fri Nov 19, 2004 1:41 pm
Posts: 2
Just to make things clear. I never ask a particular object to be updated. For some really strange reason, Hibernate decides that a particular object should be updated with a random value and issues the UPDATE statement, even though I don't try to save/update the object.

I'm wondering if this has something to do with the cache? Any clues?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.