-->
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: Removing NHibernate collections
PostPosted: Tue Sep 06, 2005 10:11 pm 
We're building a 3-tier solution using NHibernate. We're implementing the command pattern to avoid doing DTOs; however we don't want to have NHibernate assemblies present on the client at all -- to achieve that we are replacing the NHibernate types with our own. This gets to be a bit tedious and error prone in various scenarios. Anyone else has an ellegant solution to this?

Thanx,

maros


Top
  
 
 Post subject:
PostPosted: Wed Sep 07, 2005 7:33 pm 
Contributor
Contributor

Joined: Thu May 12, 2005 8:45 am
Posts: 226
The objects which NH maps to don't need to reference NH at all. They can be transferred (DTO, right?) between layers without any special baggage. All the layers need references to the DTOs and that's it. Only the bottom layer really needs the NH assembly reference.

The command pattern is fine, but I don't see how it is related to the DTOs or the NH types. Perhaps a code sample of what you're hoping to do would help.


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.