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: Cannot get the Nullable types to work in version 1.2.1.4000
PostPosted: Wed Aug 27, 2008 9:38 pm 
Newbie

Joined: Wed Aug 27, 2008 9:08 pm
Posts: 4
Hibernate version: 1.2.1.4000

Mapping documents: ...<property name="curParentJurID" column="CurParentID" type="Nullables.NHibernate.NullableInt32Type, Nullables.NHibernate"/>...

Name and version of the database you are using:SQl Server 2000


I've just converted from NHibernate 1.0.3.0 to 1.2.1.4000. I did this by downloading the binary files for 1.2.1.400 (NHibernatye.DLL, Nullables.DL, log4net.dll etc...) and manually copying them into my folders where the 1.0.3.0 files existed). when I log into my application I get the following error:
could not interpret type: Nullables.NHibernate.NullableInt32Type, Nullables.NHibernate

I never had this problem with version 1.0.3.0 and none of the mapping files have changed (except for using urn:nhibernate-mapping-2.2 and adding default-lazy = "true")

Here is the code that loads my NHibernate mapped classes (they are embedded resources):


m_cfg = new Configuration();
m_cfg.Properties.Add("hibernate.connection.connection_string", CWTXSql.connectionString);
m_cfg.AddAssembly("WTXObjectModel"); //WTXObjectModel is the assembly containing my mappings and classes
m_factory = m_cfg.BuildSessionFactory();

The error happens when I execute the AddAssembly method


Please help!


***Note: the nullable types are being properly referenced and their properties are visible to the code (intellisense)


Top
 Profile  
 
 Post subject: Remove NHibernate nullables?
PostPosted: Thu Aug 28, 2008 2:28 pm 
Newbie

Joined: Wed Aug 27, 2008 9:08 pm
Posts: 4
Is NHibernate 1.2.1.4000 not compatible with NHibernate nullables used in previous versions?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2008 2:18 am 
Regular
Regular

Joined: Tue Jul 29, 2008 3:30 am
Posts: 74
I haven't used NHibernate before 1.2.1.GA or NHibernate nullables ever, but the standard .NET nullables work with NHibernate 1.2.1.GA.
So maybe you want to consider switching to the .NET nullables.


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.