-->
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: Using 1.2.0.Alpha1
PostPosted: Fri Jul 14, 2006 1:49 pm 
Beginner
Beginner

Joined: Fri Jul 07, 2006 12:08 pm
Posts: 37
I am using 1.2.0.Alpha 1..
In its release notes,it says..

* Entities and collections are lazy by default. Change by setting default-lazy="false" in <hibernate-mapping>

* Types used as proxies are now validated (a check is done that all public members are
virtual). Validation can be disabled by setting hibernate.use_proxy_validator to false.

where i have to declare hibernate.use_proxy_validator to false...

Also,i am getting this exception..

InvalidProxyTypeException:Destination Cannot be specified as proxy:get_destinationname should be virtual


My xml file
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" namespace ="IVATBusinessLayer" assembly ="IVATBusinessLayer.dll">
<class name ="Destination" table ="Locations">
<id name ="m_DestinationID" access ="field" column ="LocationID">
<generator class ="identity"></generator>

</id>
<property name="DestinationName" column ="LocationName"></property>
</class>
</hibernate-mapping >


pls help
thks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 2:13 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Don't disable the validation. Either declare the members virtual, or set lazy="false" for the failing class.

Disable the validation only after it doesn't report any errors.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 2:41 pm 
Beginner
Beginner

Joined: Fri Jul 07, 2006 12:08 pm
Posts: 37
sergey wrote:
Don't disable the validation. Either declare the members virtual, or set lazy="false" for the failing class.

Disable the validation only after it doesn't report any errors.


ok..i have solved the error..but where exactly(config file?)..do i put validation as false..if i decide to..

thks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 3:46 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Yes, in the config file, along with other properties like hibernate.dialect for example.


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.