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
|