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.1 changes with IUserTypes?
PostPosted: Mon Nov 24, 2008 11:14 am 
Newbie

Joined: Thu Dec 13, 2007 3:13 pm
Posts: 9
hi there,

i was using NHibernate 2.0 with a custom IUserType to serialize System.Uri objects to a column in my tables.
Now i am upgrading to NH2.1 (due to Linq2NH) and my custom user types are not working anymore.


Code:
NHibernate.MappingException: Could not determine type for: Santiago.Shared.Entities.Util.UriType, Santiago.Shared, for columns: NHibernate.Mapping.Column(Picture)
   bei NHibernate.Mapping.SimpleValue.get_Type()
   bei NHibernate.Mapping.SimpleValue.IsValid(IMapping mapping)
   bei NHibernate.Mapping.PersistentClass.Validate(IMapping mapping)
   bei NHibernate.Mapping.RootClass.Validate(IMapping mapping)
   bei NHibernate.Cfg.Configuration.Validate()
   bei NHibernate.Cfg.Configuration.BuildSessionFactory()



is all i get. are there any changes to obey when using NH 2.1 instead of 2.0 with IUserType derived classes?
thanks


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.