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: Mapping error with NHibernate.Mapping.Attributes
PostPosted: Fri Nov 30, 2007 1:33 pm 
Newbie

Joined: Fri Nov 30, 2007 1:21 pm
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 1.2.1.4 GA

Mapping documents: Using Attributes

There may be a very easy answer to this, but I can't find it.

I'm using NHibernateContrib and the NHibernate.Mapping.Attributes method for creating my object mappings.

Whenever I try to add my mappings to my assembly (using cfg.AddInputStream) I get the following error:


Problem loading assembly into NHibernate. Exception: (3,2): XML validation error: Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'. Inner Exception: Could not find schema information for the element 'urn:nhibernate-mapping-2.0:hibernate-mapping'.


So basically NHibernate.Mapping.Attributes is generating xml with the wrong namespace for the current version of NHibernate. Looking at the code for Attributes.HbmSerializer, I see that the xml namespace is hardcoded to 2.0.

Is this correct? Is there any runtime work around to this issue? Do I really have to compile my own NHibernateContrib to make this work? Thanks for any help!

Matthew


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.