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: Create Concrete Class When Interface Has Been Requested
PostPosted: Tue Oct 21, 2008 12:31 pm 
Newbie

Joined: Wed Sep 05, 2007 12:22 pm
Posts: 8
Hi,

We have a service layer interface specification that all my objects in the domain layer conform to.

i.e. Account conforms to IAccount, Customer conforms to ICustomer.

Within the data layer I want Nhibernate to create an instance of Customer when I request an ICustomer.

I have searched the forums and help and it seems lots of people have this design issue but no one has posted a solution.

Now I have seen that the mapping file has a 'Proxy' setting. Can I simply specifiy the interface as the proxy?

Thanks in advance

Russ


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.