File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes How to configure xxx.hbm.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to configure xxx.hbm.xml" Watch "How to configure xxx.hbm.xml" New topic
Author

How to configure xxx.hbm.xml

Thirumurugan Sivaji
Greenhorn

Joined: Mar 03, 2009
Posts: 20
Hi,
My Employee.hbm.xml is as follows

<?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="event.Employee" table="employee">
<id name="id" >
<generator class="increment"></generator>
</id>

<property name="empId" column="EMP_ID"/>
<property name="empName" column="EMP_NAME"/>
<property name="empPwd" column="EMP_PASSWORD"/>
</class>
</hibernate-mapping>

Can I create the above-mentioned xml without <id> tag?

Warm Regards,

Thirumurugan Sivaji

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to configure xxx.hbm.xml
 
Similar Threads
Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
Hibernate 3.0 : Where am I going wrong?
Id key in .hbm.xml
Different Mapping Types in Hibernate
Session onject throwing exception when trying to save a object or begin a transaction