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.  [ 2 posts ] 
Author Message
 Post subject: Mapping Rowver column in NHib 2.0.0.Alpha1 woes
PostPosted: Thu Jun 05, 2008 9:27 am 
Newbie

Joined: Sun Aug 12, 2007 2:34 pm
Posts: 8
Location: Geneva, IL USA
I've been using the technique described in this post:

http://www.codeproject.com/KB/dotnet/OptLocking_PrefixTable.aspx

to map MS SQL2005's rowversion column with NHib1.2.1 successfully. After upgrading to NHib2.0.0Alpha1, I keep getting the following error and i'm yet to find a solution around it.

Code:
System.TypeInitializationException: The type initializer for 'Nested' threw an exception. ---> NHibernate.MappingException: Could not compile the mapping document: etf.hbm.xml ---> NHibernate.MappingException: Could not determine type for: UserTypeTimestamp, for columns: NHibernate.Mapping.Column(Rowver)


In my mapping file, this is how I was mapping the column:

Code:
<version name="Rowver" column="Rowver" type="Persistence.UserTypeTimestamp, MyDomainsAssembly" generated="always" unsaved-value="null"/>


Any help will be most welcome.

Thanks
LH


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 05, 2008 9:44 am 
Regular
Regular

Joined: Thu Mar 06, 2008 5:06 am
Posts: 68
I have the same problem with 2.0alpha1. I didn't find a solution so far, that's why I still use 1.2.1...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.