-->
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: Hibernate updating entity from dto (copyProperties)
PostPosted: Thu May 12, 2011 2:09 pm 
Newbie

Joined: Sat Sep 12, 2009 12:50 pm
Posts: 6
Hello,

I have a really weird problem.
My application is ready for use - but it lacks support for object editing at moment (I implemented "add" and "get" for all objects first, to see the application running)

I am working with hibernate and Flex (graniteds).
So my Weblayer is receiving objects in data transfer objects, perhaps the user is editing the object and now passing it to the customer_edit(Customer) method in the servicelayer.

I have now a changed object of my class outside of any hibernate session, maybe some of the collections are initialized (for example customers addressList).

Maybe I could (after validity check for some security) update the object at the database without any cascading. (so the already initialized but not in session collections are thrown away)
But now I am lacking of the one-to-one identifier changes (which address of the customer is the standard shipping address is stored at a seperate one-to-one collection)


Help, how is an experienced hibernate developer dealing with such situations?

Thanks


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.