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: Persist internal class thanks to interface
PostPosted: Fri Sep 01, 2006 2:47 am 
Newbie

Joined: Wed Aug 30, 2006 4:43 am
Posts: 4
Hi ! :)


I'm going to be crazy if i don't find the solution ... please help me !

I'm working with MVC model and I'd like to persist my business which are declared like this :
Code:
internal class MyClass : IMyClass
{
}


I try to persist them without change their accessibility but of course, it doesn't work ... So I think to I should use my Interface which are declared as public.
The problem I have is that i can't persist my interface because of Nhibernate doesn't find properties ...

Is there someone who has a sample code for this ?

Thanks in advance,

Vincent


Top
 Profile  
 
 Post subject: Re: Persist internal class thanks to interface
PostPosted: Fri Sep 01, 2006 3:38 am 
Expert
Expert

Joined: Thu Jan 19, 2006 4:29 pm
Posts: 348
varod wrote:
I'm working with MVC model and I'd like to persist my business which are declared like this :
Code:
internal class MyClass : IMyClass
{
}


I try to persist them without change their accessibility but of course, it doesn't work ... So I think to I should use my Interface which are declared as public.
The problem I have is that i can't persist my interface because of Nhibernate doesn't find properties ...


I agree that NHibernate could save Intraface to database. But how could it restore it from database? You can not create new instance of interface, neither can NHibernate....

Gert

_________________
If a reply helps You, rate 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.