Dear Tools Users,
I am trying to use the following hbm.xml file and trying to create a POJO. The POJO is created but equals and hashcode methods are absent from the java file. Any help is appreciated.
Thanks in advance.
--------
hbm file:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Jul 31, 2007 12:06:05 PM by Hibernate Tools 3.2.0.b9 -->
<hibernate-mapping>
<class name="PersonPOJO" table="Persons" schema="data" catalog="myCat">
<id name="personPojoId" type="java.lang.Long">
<column name="personID" />
<generator class="increment"></generator>
<meta attribute="use-in-tostring">true</meta>
<meta attribute="use-in-equals">true</meta>
</id>
<property name="lastName" type="string">
<column name="LastName" length="50" />
</property>
<property name="firstName" type="string">
<column name="FirstName" length="30" />
</property>
<hibernate-mapping>
---
Thanks in advance.
|