-->
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: Change not being persisted to data store
PostPosted: Thu Apr 29, 2004 11:22 am 
Beginner
Beginner

Joined: Mon Dec 08, 2003 8:09 am
Posts: 25
Hi there,
I have an object called Part which has a simple String field called filename. When Parts are initially persisted to the database the field seems to be set just fine. However, when I reretreive the object from store, alter the filename, and then persist it again, the change doesnt get persisted. Strangely, if I change the filename AND I change some Blob data (another field of the Part object) then the new value for Filename DOES get persisted.
The mapping doesnt appear to provide any clues as to why this is happening. Any clues as to why this might be happening?

Heres the relevant portion of the mapping anyway:

<property name="filename" column="filename" type="string" not-null="false" unique="false" update="true" insert="true" />

<property name="blobData" column="blobdata" type="blob" not-null="false" unique="false" update="true" insert="true" />

Regards
Jon


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 11:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Are you doing proper transaction handling? Show your code.


Top
 Profile  
 
 Post subject: Possibly problem with one of our classes
PostPosted: Tue May 04, 2004 8:22 am 
Beginner
Beginner

Joined: Mon Dec 08, 2003 8:09 am
Posts: 25
This may be a problem with one of our classes (I thought I had eliminated this possiblity- but apparently not). We're looking into it. Apologies.


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.