• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could not parse mapping document from resource register.hbm.xml

 
venkataswamy sonti
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am not able to find the why that exception occurs.

My register.hbm.xml as follows

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="RegisterPojo" table="REGISTRATION">
<id name="registerId" column="registerid">
<generator class="sequence"/>
</id>
<property name="name" column="name" not-null="true"/>
<property name="address" column="address" not-null="true"/>
<property name="phone" column="phone" not-null="true"/>
<property name="email" column="email" not-null="true"/>
<property name="userName" column="userName" not-null="true"/>
<property name="password" column="password" not-null="true"/>
<property name="cpassword" column="cpassword" not-null="true"/>
</class>
</hibernate-mapping>



Could you please help me on this. Thank you in advance.
 
Anurag Verma
Ranch Hand
Posts: 168
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your RegisterPojo class inside some package? If no, then recommendation is put it inside some package & update your hbm file as per that. If you already have it, then you missed to mention the package name in your hbm file.
 
venkataswamy sonti
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.. yes, i forgot the mentioned the package name infront of the form name in xml file. now its working..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic