-->
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 error in mapping column.
PostPosted: Tue Dec 06, 2011 4:48 am 
Newbie

Joined: Mon Jan 31, 2011 6:13 am
Posts: 2
My hbm.xml file is as follows:

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="Project.Data.BusinessObjects" assembly="Project.Data">
<class name="Project.Data.BusinessObjects.HSBom, Project.Data" table="[dbo].[HS_Bom]" lazy="true">
<id name="Id" column="[bomID]">
<generator class="assigned" />
</id>
<property name="BomPosition" column="[bomPosition]" />
<property name="Quantity" column="[quantity]" />
<property name="CreatedBy" column="[createdBy]" />
<property name="CreatedAt" column="[createdAt]" />
<property name="UpdatedBy" column="[updatedBy]" />
<property name="UpdatedAt" column="[updatedAt]" />
<many-to-one name="HSPartList1" column="[parentPartListId]" class="HSPartList" />
<many-to-one name="HSPartList2" column="[childPartListId]" class="HSPartList" />
<bag name="HSInstructions" table="[dbo].[HS_SubParts]" lazy="true" cascade="all" inverse="false" >
<key column="[bomID]"></key>
<many-to-many column="[sectionID]" class="HSInstruction" />
</bag>
</class>
</hibernate-mapping>

When I run my application am getting an error:
Project.Data.HbmMaps.HSBom.hbm.xml(17,17): XML validation error: The 'column' attribute is not declared.

Whats is the issue with the mapping xml?


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.