-->
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: Transforming VOs to Entities in client tier
PostPosted: Fri Jul 13, 2007 11:10 am 
Regular
Regular

Joined: Sun Sep 25, 2005 11:35 pm
Posts: 57
I have question related to the "Hibernate in a Layered Architecture" document (http://www.hibernate.org/124.html).

Background: I am developing an application where the front-end is a Swing app and physically separated from the server. I would like to transfer information to this Swing client using DTO's because pushing enties would be very inefficient (large object graphs) and error prone (in case some proxies have not been loaded).

Question: What is the most efficient way to convert DTOs to (presentation-specific) object graphs? I could hand write assemblers/converters, but that is very time consuming. In addition, updates to these object graphs (from the server) would require effort - DTOs will have to be merged into existing objects. Are there any libraries that would help with this? I notice that Hibernate's StatefulPersistanceContext does similar things, i.e. converts flat result sets into object graphs. Something similar to this but using VOs as input would be perfect! Any ideas?

Thanks.
Naresh


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.