-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problem when Migrating to NH 1.2CR1.
PostPosted: Mon Feb 26, 2007 9:12 pm 
Beginner
Beginner

Joined: Mon Sep 26, 2005 5:57 pm
Posts: 39
In our existing application running NH1.04, I have methods and properties in my classes, that I did not declare as virtual. However, upon converting to 1.2, I get an error message complaining about these. Is this normal?

The following types may not be used as proxies:
CID.IPath.NewBusinessLayer.organization: method get_projects_security_filtered should be virtual
CID.IPath.NewBusinessLayer.organization: method get_locations_security_filtered should be virtual
CID.IPath.NewBusinessLayer.organization: method Serialize should be virtual
CID.IPath.NewBusinessLayer.organization: method get_projects_security_filtered should be virtual
CID.IPath.NewBusinessLayer.organization: method get_locations_security_filtered should be virtual
CID.IPath.NewBusinessLayer.invoicepackage: method GenerateInvoice should be virtual
CID.IPath.NewBusinessLayer.invoicepackage: method Discard should be virtual
CID.IPath.NewBusinessLayer.invoicepackage: method Serialize should be virtual
CID.IPath.NewBusinessLayer.claimreviewtasktype: method Serialize should be virtual
CID.IPath.NewBusinessLayer.seriouscasereason: method Serialize should be virtual
CID.IPath.NewBusinessLayer.QAQCRecord: method Serialize should be virtual
CID.IPath.NewBusinessLayer.feeschedulesection: method Serialize should be virtual
CID.IPath.NewBusinessLayer.Statelicense: method Serialize should be virtual
CID.IPath.NewBusinessLayer.feeschedule: method Serialize should be virtual
CID.IPath.NewBusinessLayer.procedurecode: method Serialize should be virtual
CID.IPath.NewBusinessLayer.ProviderOfGS: method get_organizations_sorted should be virtual
.
.
.
.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 26, 2007 11:13 pm 
Beginner
Beginner

Joined: Mon Sep 26, 2005 5:57 pm
Posts: 39
This is no longer a problem. I solved this for now by adding default-lazy="false" to hibernate-mapping element.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 27, 2007 3:33 am 
Newbie

Joined: Tue Jan 17, 2006 5:00 am
Posts: 16
Yes, this is normal behaviour, when using the lazy feature all methods of your object needs to be virtual in order for the proxy to be able override these.


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