-->
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: Mapping atrributes use interfaces intstead of classes
PostPosted: Fri Sep 30, 2005 12:29 pm 
Newbie

Joined: Fri Sep 30, 2005 12:15 pm
Posts: 1
Hi,

I am just starting to use nhibernate, and I am trying to map my onetoone attribute to an interface instead of classes directly. Is that possible, am I missing something. A little snippet looks like this:
[OneToOne(16, ForeignKey = "StatusId", ClassType = typeof(Status))]
I would like to implement it as an interface like
[OneToOne(16, ForeignKey = "StatusId", ClassType = typeof(IStatus))]

Is possible???

_________________
Siggi Gunn


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 02, 2005 6:29 am 
Beginner
Beginner

Joined: Tue Aug 09, 2005 9:43 am
Posts: 30
Location: Lisbon, Portugal
If you check

http://nhibernate.sourceforge.net/forum ... =interface

you'll see that not only you can but there are benefits to it.


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.