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: I can't create BO classes correctly because of NHibernate
PostPosted: Fri Nov 06, 2009 9:01 am 
Newbie

Joined: Fri Nov 06, 2009 8:54 am
Posts: 4
Hi,

I'm currently starting to use NHibernate and trying with simple examples works fine. Basic CRUDs operations works...
Now I'm trying to add this in a project and i'm facing a problem with my buisness objects :
They have to be validated for WPF purposes so I have some methods from IDataErrorInfo interface and other ones for some treatments.
NHibernate tells that :

Quote:
Iguana.Software.ICashDataLayer.DAOTesting.Save:
NHibernate.InvalidProxyTypeException : The following types may not be used as proxies:
Iguana.Software.ICashBO.TransactionAuto: method add_PropertyChanged should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionAuto: method remove_PropertyChanged should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionAuto: method get_Error should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionAuto: method IsValid should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionUser: method add_PropertyChanged should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionUser: method remove_PropertyChanged should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionUser: method get_Error should be 'public/protected virtual' or 'protected internal virtual'
Iguana.Software.ICashBO.TransactionUser: method IsValid should be 'public/protected virtual' or 'protected internal virtual'


Ok it should be virtual and my properties are virtual, but what if I don't want my methods and functions to be virtual ? Why Nhibernate wants this ? these are not properties so what it should do with ?!!
I really don't understand what I have to do...
Could you please help me ?

Thanks


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.