Thread:
 MappingException received 
 frenzy776   10 Jul 2007, 02:43 
 Re: MappingException received 
 gunwantw   28 Aug 2007, 12:50 
 Re: MappingException received 
 Tatiana_V   30 Aug 2007, 08:35 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: frenzy776 (10 Jul 2007, 02:43) Replies: 2, Views: 4399
Subject: MappingException received
While trying to get this quickstart to work I keep getting a 
MappingException: "XML validation error: Could not find schema 
information for the element 'urn:nhibernate-mapping-2.0:hibernate-
mapping" when calling cfg.AddAssembly("DBSandbox").

My mapping file looks like the following:

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
  <class name="DBSandbox.Movies.Movie, DBSandbox" table="Movies">
    <property name="Id" type="Int32"/>
    <property name="Title" type="String" length="50"/>
    <property name="Rating" type="String" length="10"/>
    <property name="Actors" type="String"/>
  </class>
</hibernate-mapping>

Thanks in advance for any help.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]