-->
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: n-Tier design Question
PostPosted: Mon Aug 16, 2004 6:47 am 
Newbie

Joined: Thu Nov 27, 2003 4:50 am
Posts: 16
Location: M
hi!

i have an application which uses java beans and hibernate to store the data.
btw: hibernate is running fine - it's great!

but now i have to send some date via xml to a client - which is no problem.
sometimes the client is sending a changed object back - and here starts the problem:

i want to update all the changed objects BUT i never get the whole object-graph back (some references are not initialized, they are null). with i just a saveOrUpdate it lose alle these null un-initialized references :-(

a can't controll the whole saveOrUpdate with the cascade setting because the object graphs have never the same depht.

.... and here is my question:
- is there a common way i could not find in the docs/forum or google?
- do i have to write a "RemoteSyncUtil" for every POJO?
- am i too stupid for hibernate?

p.s.: i have read the manual :-) and i'm using hibernate 2.1.4


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 10:20 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Well I would load the previous state and automagically fill the new values. This is usually application specific to consider null as null or as end of graph

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 16, 2004 1:08 pm 
Newbie

Joined: Thu Nov 27, 2003 4:50 am
Posts: 16
Location: M
emmanuel wrote:
Well I would load the previous state and automagically fill the new values. This is usually application specific to consider null as null or as end of graph


this means i have to write a util (or manager) class which takes care to copy every property. or i use a reflection copy tool.

thanks for your response!


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.