-->
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: Lightweight value objects necessary?
PostPosted: Thu Apr 15, 2004 11:04 pm 
Newbie

Joined: Sat Mar 20, 2004 9:05 am
Posts: 5
Hello, i've been using JDO for the past while and as such have used lightweight value objects, created from persistence objects, to pass data to and from the web layer from the ejb layer. Because of the bytecode enhancement done in JDO, persistent classes can become quite heavy and therefore it's not desirable to be passing them around from web to ejb and vica versa. Does anyone care to comment on the merits or drawbacks of using a similar pattern when using hibernate at the persistence layer? Is it necessary? Does using runtime bytecode generation imply that the persistent objects themselves remain lightweight?

M@


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 16, 2004 5:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Hibernate does not use bytecode manipulation to change your objects. (at least not in the sense JDO does). Runtime bytecode generation is mainly used to create Proxys and for reflection optimisation. So there is no need to use DTOs, it is usually much easier to just use the persistent classes and use hibernates detatched object support.


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.