-->
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: A Though situation on binary data and blobs
PostPosted: Fri Mar 31, 2006 3:03 am 
Newbie

Joined: Sun Jul 24, 2005 4:17 pm
Posts: 7
Hello,

I have a question about how to implement a use case...

I have an entity which has a collection of non persistent items.
I keep the collection in a private field marked as @Transient . And I implement prepersist/preUpdate and onload call backs within the entity class.

The problem is with the dirty flags. As soon as a make a change to the collection and save it, then my subsequent changes to the collection followed by associated updates do not make their way into the database. Hibernate thinks the entity is not dirty and ignores the changes.

Obviously I am making something wrong.

What is the correct way of streaming an arbitrary serializable field into a blob field.

Any suggestions are most appreciated.

Regards,
Hasan Ceylan


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.