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!!