Thread:
 another mapping framework? 
 loverde   26 Nov 2003, 01:55 
 Re: another mapping framework? 
 christian   10 Dec 2003, 14:30 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: loverde (26 Nov 2003, 01:55) Replies: 1, Views: 40011
Subject: another mapping framework?
As strange as it sounds, I think that what is really needed in this type
of layered architecture is yet another mapping framework.  (And by
"needed", I really mean what would be nice.)

In a sense, your "Assembler" classes are exactly that framework.  One
could envision creating an XML mapping based framework that would
"automate" the assembly process, possibly even directly generating the
DTO classes.  If using reflection, CGLIB could also be employed in this
layer for performance gains.

If you are an XDoclet fan, it would also be realistic to develop a set
of XDoclet tags that could generate your DTOs right from your domain
objects (similar to the value object tags for EJBs).

Obviously this is a lot of plumbing, but that tends to be the price of
layered architectures.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]