-->
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.  [ 2 posts ] 
Author Message
 Post subject: Need advice on hibernate and webservices
PostPosted: Tue Sep 04, 2007 8:39 am 
Beginner
Beginner

Joined: Sun Aug 12, 2007 11:22 am
Posts: 44
Location: Sweden
Hi!

I need some advice on Hibernate and WebServices

I want to use webservices to send and recieve java objects. It works fine with pojos.

How can I send objects with database id , modify in client and send to server and just persist the object again?

ex.

Client makes request for Page objects thru Webservice and get a collection of Pages with id and sortorder ( From Hibernate DAO )

Client changes some sortorder add a new Page and send the objects to servet.

Server iterates true collections and calls persist. Pages that has id gets updated and new Pages get inserted.

Can anyone help me with how to do this?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 04, 2007 5:43 pm 
Beginner
Beginner

Joined: Sun Aug 12, 2007 11:22 am
Posts: 44
Location: Sweden
Is there any example on how to use detached objects and let client get and set thoose objects and later persist them?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.