-->
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.  [ 4 posts ] 
Author Message
 Post subject: Method XXX should be virtual
PostPosted: Thu Jun 01, 2006 11:33 am 
Beginner
Beginner

Joined: Thu Jun 01, 2006 11:27 am
Posts: 28
I have a question, I start to test NHibenate 1.2.0 but i getting an error "method XXX should be virtual". I read in this forun that this validation can be disabled. How i can disable it?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 11:38 am 
Expert
Expert

Joined: Fri May 13, 2005 5:56 pm
Posts: 308
Location: Santa Barbara, California, USA
if your class is mapped for lazy loading, you must make all of your properties "virtual"


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 11:43 am 
Expert
Expert

Joined: Thu Jan 19, 2006 4:29 pm
Posts: 348
devonl wrote:
if your class is mapped for lazy loading, you must make all of your properties "virtual"

.. You must make all Your public properties and public methods virtual.

AFAIK.

Gert

_________________
If a reply helps You, rate it!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 01, 2006 11:46 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Set the hibernate.use_proxy_validator property to false to disable it, but only if you know what you are doing. Don't disable the validator if you are actually getting errors from it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.