-->
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: DTOs, VOs, and hibernate objects; a design question
PostPosted: Wed Jan 12, 2005 1:29 pm 
Newbie

Joined: Tue Jul 27, 2004 1:17 pm
Posts: 12
Hibernate version:2.1

HIA says not to use both hibernate objects and parallel Data Transfer Objects.

What is the Best Practice for hibernate objects that need to have non-persisted extra data and/or methods other than getter/setter?

On one hand I want my hibernate objects to be clean: just persisted members and only getter/setter methods.

On the other hand I don't want to have to wrap my hibernate objects in DTO-like classes for when I pass them up to EJB session beans.

What the thinking about how to approach this design issue? I've read the book and didn't see this addressed.

Thank you.

Brian Tarbox


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 21, 2005 10:41 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Use whatever works for you, its more or less a trival thing and totally depends on your needs. The pro and cons of each are explained in the book.


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.