-->
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: Using a Subclass to implement relationships
PostPosted: Wed Oct 13, 2004 12:52 pm 
Newbie

Joined: Wed Oct 13, 2004 12:46 pm
Posts: 1
I am trying to pass domain objects down to the presentation layer via web services (AXIS), allow changes made to the disconnected data, send it back up and update the database.

For ease of use, I would like to pass the hibernate objects down themselves. This works fine until I introduce any relationships or collections.

The presentation layer does not need to be aware of the relationships. Is there a way I can create a base class with the persistent fields and a subclass with the relationships/collections?

The base class would be updated in the presentation layer and synched with hibernate--updating the fields but leaving the relationships or collections unchanged.

The synchronization with hibernate could be done using Beanutils to copy from my base class to the hibernate subclass if there is no way to have this happen automatically.

Is there another approach that might work


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.