-->
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: HIbernate and Domain Objects
PostPosted: Sun Jun 18, 2006 4:46 am 
Newbie

Joined: Thu Jun 15, 2006 8:56 pm
Posts: 2
In a n-tier archtecture, is it advisable for the Hibernate ORM to work with the Domain Objects(create and store) directly? The other option is to have a transfer object assemblers layer to convert between hibernate dao's and domain objects.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 18, 2006 2:20 pm 
Regular
Regular

Joined: Mon Jun 13, 2005 12:21 pm
Posts: 61
Location: Hannover
This question is discussed pretty often (also it's not an FAQ), you search after "3-tier" or "n-tier" in this forum. After all it's a matter of taste. There is no TECHNICAL reason to use DTO cause hibernate domain object are lightweighted POJOs.

IMHO the answers is: "It depends". If your n-tier modell is on one maschine, I would use the domain objects directly, if you've got a remote architecture (via RMI, WebService, http or whatever) if would use DTO to keep the transfered data as small as possible.


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.