-->
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: data curruption problem
PostPosted: Tue Nov 09, 2004 1:33 pm 
Beginner
Beginner

Joined: Sun Jun 06, 2004 10:13 am
Posts: 20
Hibernate version:
2.0.3

Mapping documents:
....
<property name="status"/>
<property name="lastModified"/>
...

Code between sessionFactory.openSession() and session.close():
session = sessionFactory.openSession();
transaction = session.beginTransaction();
session.saveOrUpdateCopy(o);
transaction.commit();
Full stack trace of any exception that occurs:
no stack trace

Name and version of the database you are using:
oracle 9i

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

amazingly screwy problem... i have a simple entity object.. with 2 attributes.. one String and one Date. When I save the object, update the data, then save it again, the String attribute gets currupted by the time it gets to the database.

in the debugger the string is correct, as "SUBMITTED".. when i step through and re-save it to the database, it becomes "$%#MITTED".. its like the first part of the array of chars is being currpted by some other write.

the REALLY screwy thing here is that if i remove the other attribute (the date), the string behaves as expected.

any ideas? this is killing me.

g


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 12, 2004 11:47 am 
Newbie

Joined: Fri Nov 12, 2004 11:41 am
Posts: 1
hi gjlloyd,

i have exactly same problem. first 3 characters of string is currupted during update. can you find a solution ??

thanks,


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.