-->
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: Lazy loading, with XML Marshalling. Am I SOL?
PostPosted: Mon Aug 27, 2007 2:12 pm 
Beginner
Beginner

Joined: Thu Feb 26, 2004 11:45 am
Posts: 46
Hibernate version:3


We have pretty much completed mapping a fairly robust set of business objects in our business domain. A good portion of them are working properly with a thin client JSF implementation.

We now are moving to our thick client/Swing support. This object model has been in place along with several think swing clients for a few years.

We move our objects client to server and back by converting to XML (we use Castor, we could use other technology)

When you take an object and serialize/marshall it into XML, you get "copy" of that object on another computer. (sorry for the obvious).

So, the question,problem is this. Server loads an object that has several lazy loads. It sends it to the client, and now the client is looking a a POJO. Hibernate proxies don't exist, since the xml binding tools create the real object.

The client now changes a few items in the object. They don't touch any objects in the any of the lazy loaded collections.

The object is then sent back to the server.

How will a merge handle this? We are merging a pojo object without the proxied collections with the orginal. We do not wish to delete collections, because nothing has changed.

What is the recommended approach to handle this situation? Am i missing some simple answer?

I'm hoping somebody has this same scenario and has worked through it.

much thanks for any help.

_________________
Please rate this reply if it helps!!


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.