-->
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.  [ 1 post ] 
Author Message
 Post subject: Search (DDD specification) and nhibernate
PostPosted: Wed Jun 01, 2005 11:07 am 
Regular
Regular

Joined: Thu May 12, 2005 10:12 am
Posts: 71
Location: Buenos Aires, Argentina
This question is related to a previous posting. I'm trying to do a search criteria using nh "a la" Domain Driven Design. I asked this question before but I'm still not sure how to implement it.

Can anyone point mw to an example on how to build a Specification object (and its corresponding Repository) and how to use it with nhibernate?

Looking at DDD book it showed that the specification object uses SQL to do a query. This SQL is wrapped in the Specification object. Using NH, SQL could would replaced by HQL, but I still dont like this aprroach because it makes NH creep into my domain.

Can someone show me the light on how to do this "right" ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.