-->
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: HBM file with multiple <class></class> tags- ERROr
PostPosted: Tue Nov 03, 2009 2:28 pm 
Newbie

Joined: Tue Nov 03, 2009 2:23 pm
Posts: 2
I added all the Jars in to Lib and I get this error.

errororg.hibernate.InvalidMappingException: Could not parse mapping document from resource Customer.hbm.xml.
I have lots of tables and I have multiple classes in my hbm file.. Would that be a problem? Any pointers appreciated.

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="customer_unmarshall.Product" table="Product">
<id name="productID" type="int" column="ProductID" >
<generator class="assigned"/>
</id>
<property name="name">
<column name="Name" />
</property>
<property name="productNumber">
<column name="ProductNumber"/>
</property>
<property name="color">
<column name="Color"/>
</property>
<property name="standardCost">
<column name="StandardCost"/>
</property>
<property name="listPrice">
<column name="ListPrice"/>
</property>
<property name="size">
<column name="Size"/>
</property>
<property name="weight">
<column name="Weight"/>
</property>
<property name="productModelID">
<column name="ProductModelID"/>
</property>
<property name="productCategoryID">
<column name="ProductCategoryID"/>
</property>
<property name="sellStartDate">
<column name="SellStartDate"/>
</property>
<property name="sellEndDate">
<column name="SellEndDate"/>
</property>
<property name="discontinuedDate">
<column name="DiscontinuedDate"/>
</property>
<property name="thumbNailPhoto">
<column name="ThumbNailPhoto"/>
</property>
<property name="thumbnailPhotoFileName">
<column name="ThumbnailPhotoFileName"/>
</property>
</class>
<class name="customer_unmarshall.Address" table="Address">
<id name="addressID" type="int" column="AddressID" >
<generator class="assigned"/>
</id>
<property name="addressLine1">
<column name="AddressLine1"/>
</property>
<property name="addressLine2">
<column name="AddressLine2"/>
</property>
<property name="city">
<column name="City"/>
</property>
<property name="stateProvince">
<column name="StateProvince"/>
</property>
<property name="countryRegion">
<column name="CountryRegion"/>
</property>
<property name="postalCode">
<column name="PostalCode"/>
</property>

</class>
<class name="customer_unmarshall.Customer" table="Customer">
<id name="customerID" type="int" column="CustomerID" >
<generator class="assigned"/>
</id>
<property name="nameStyle">
<column name="NameStyle"/>
</property>
<property name="title">
<column name="Title"/>
</property>
<property name="firstName">
<column name="FirstName"/>
</property>
<property name="middleName">
<column name="MiddleName"/>
</property>
<property name="lastName">
<column name="LastName"/>
</property>
<property name="suffix">
<column name="Suffix"/>
</property>
<property name="companyName">
<column name="CompanyName"/>
</property>
<property name="salesPerson">
<column name="SalesPerson"/>
</property>
<property name="emailAddress">
<column name="EmailAddress"/>
</property>
<property name="phone">
<column name="Phone"/>
</property>

</class>
<class name="customer_unmarshall.CustomerAddress" table="CustomerAddress">
<id name="customerID" type="int" column="CustomerID" >
<generator class="assigned"/>
</id>
<id name="addressID" type="int" column="AddressID" >
<generator class="assigned"/>
</id>
<property name="addressType">
<column name="AddressType"/>
</property>
</class>
<class name="customer_unmarshall.ProductCategory" table="ProductCategory">
<id name="productCategoryID" type="int" column="ProductCategoryID" >
<generator class="assigned"/>
</id>
<property name="parentProductCategoryID">
<column name="ParentProductCategoryID"/>
</property>
<property name="name">
<column name="Name"/>
</property>

</class>

</hibernate-mapping>


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.