-->
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: [NHibernate 2.0] Problem with custom version type
PostPosted: Mon Mar 31, 2008 4:41 am 
Regular
Regular

Joined: Thu Mar 06, 2008 5:06 am
Posts: 68
I tried to migrate to NHibernate 2.0 Alpha1 and got a problem:

I use a user version type for the version column (legacy db). this is the part of the mapping containing the version column:


Code:
<version column="ROWID" name="Rowid" type="MyApp.MyNamespace.DbVersionType,MyApp.MyNamespace" generated="always" unsaved-value="null" />


You can see, that this is a full qualified name inlcuding the assembly name. This worked very well in NHibernate 1.2.1GA.

But now I get following exception:

Quote:
10:37:13,954 WARN [TestRunnerThread] ReflectHelper: PID=3588 Could not load type DbVersionType. Possible cause: no assembly name specified.
10:37:13,970 ERROR [TestRunnerThread] ReflectHelper: PID=3588 Could not load type DbVersionType.
System.TypeLoadException: Could not load type DbVersionType. Possible cause: no assembly name specified.

bei NHibernate.Util.ReflectHelper.TypeFromAssembly(AssemblyQualifiedTypeName name, Boolean throwOnError)

10:37:13,970 ERROR [TestRunnerThread] Configuration: PID=3588 Could not compile the mapping document: MyApp.DomainModel.FpAggregat.Anschrift.hbm.xml
NHibernate.MappingException: Could not compile the mapping document: MyApp.DomainModel.FpAggregat.Anschrift.hbm.xml ---> NHibernate.MappingException: Could not determine type for: DbVersionType, for columns: NHibernate.Mapping.Column(ROWID)

bei NHibernate.Mapping.SimpleValue.get_Type()

bei NHibernate.Cfg.XmlHbmBinding.RootClassBinder.BindProperty(HbmVersion versionSchema, Property property)

bei NHibernate.Cfg.XmlHbmBinding.RootClassBinder.BindVersion(HbmVersion versionSchema, PersistentClass rootClass, Table table)

bei NHibernate.Cfg.XmlHbmBinding.RootClassBinder.Bind(XmlNode node, HbmClass classSchema)

bei NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.AddRootClasses(XmlNode parentNode)

bei NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.Bind(XmlNode node)

bei NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument doc)


Are there any changes I have to apply that this works with NHibernate 2.0?

Thank you!!


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.