-->
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: cannot be specified as proxy: method get_ID should be
PostPosted: Tue May 09, 2006 3:21 pm 
Newbie

Joined: Sat Nov 05, 2005 1:51 pm
Posts: 3
Hi,

I am using .NET 2 and a project working fine with Release version of Nhibernate. I download SVN Version to use Generics.

I didnt make any changes to my code. Only replaced the latest dlls. Now when start my project, I am getting this error

cannot be specified as proxy: method get_ID should be virtual.

Now, I have read the forums and I understand that properties must be virtual if we are to use lazy loading. However, my mapping file doesn't specify any collection or child to be lazy loaded.

Now couple of questions
1) Is lazy now the default in the new version?
2) Why do properties and methods have to be marked virtual. What are proxies? I have read the documentation but dont really have a good understanding.

Regards,


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.