-->
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: Upgrade from 1.1 to 3.3 - Issues
PostPosted: Wed May 23, 2012 9:25 am 
Newbie

Joined: Wed May 04, 2011 3:18 am
Posts: 3
Hi Everyone,

I am trying to upgrade from current NH 1.1 to 3.3 Version.

Could resolve all the Namespace issues and other minor issues with the new version.

However, I am stuck with the below 3 issues.

Could any of you help me out in finding the missing link. It's clear that the below 3 classes do not have the referred properties anymore.
What is the alternative to this?

Appreciate any suggestion in this regard.

Thank you.

Error -
'NHibernate.Mapping.Property' does not contain a definition for 'ColumnCollection' and no extension method 'ColumnCollection' accepting a first argument of type 'NHibernate.Mapping.Property' could be found (are you missing a using directive or an assembly reference?)
Code -
((NHibernate.Mapping.Column)((ArrayList)prop.ColumnCollection)[0]).Name.ToLower(); // where prop is NHibernate.Mapping.Property

Error -
'NHibernate.Mapping.IKeyValue' does not contain a definition for 'ColumnCollection' and no extension method 'ColumnCollection' accepting a first argument of type 'NHibernate.Mapping.IKeyValue' could be found (are you missing a using directive or an assembly reference?)
Code -
NHibernate.Mapping.Column col in pClass.Key.ColumnCollection // PersistentClass - IKeyValue

Error -
'NHibernate.NonUniqueObjectException' does not contain a definition for 'PersistentClass' and no extension method 'PersistentClass' accepting a first argument of type 'NHibernate.NonUniqueObjectException' could be found (are you missing a using directive or an assembly reference?)
Code -
catch (NHibernate.NonUniqueObjectException ex)
{
if (ex.PersistentClass.Name.ToLower() == "item"){}


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.