-->
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: Blobs best practice
PostPosted: Mon Mar 29, 2010 7:34 am 
Newbie

Joined: Sun Dec 27, 2009 5:50 am
Posts: 3
I'm using blobs to persist different kind of images to database. Due to cache limitations the entity holding the blob property is modeled as a parent/child where the parent has a set of entities holding the actual blob property. The problem is that i want to cascade "save-update" from the parent when the parent is created or updated (and I want the blob entity to be updated on "both sides" in second level cache). The parent is loaded in a detatched state (web client) and has the blob entity is pre-loaded. When send the parent to the service layer (remote ejb3) i get "Blobs may not be accessed after serialization" because the blob entity was loaded in a detatched state before starting the service layer transaction.

What is the best way to solve this? What should I do differently?


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.