Hello,
I'm trying to get the equal and hashCode methods generated, but no luck so far.. Here's what I've put in the mapping file:
Hibernate tools version:
3.1 beta 4
Mapping documents:
<?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 24-feb-2006 19:15:12 by Hibernate Tools 3.1.0.beta4 -->
<hibernate-mapping>
<class name="es.facturacion.om.PedidoDia" table="dalbas01">
<meta attribute="generated-class" inherit="false">
es.facturacion.hibernate.PedidoDiaBase
</meta>
<meta attribute="scope-class" inherit="false">
public abstract
</meta>
<composite-id name="id"
class="es.facturacion.om.PedidoDiaId">
<meta attribute="implement-equals"/>
<key-property name="cliente" type="string">
<meta attribute="use-in-equals"/>
<column name="cliente" length="12" />
</key-property>
<key-property name="fecha" type="java.lang.Integer">
<meta attribute="use-in-equals"/>
<column name="fecha" />
</key-property>
<key-property name="serie" type="string">
<meta attribute="use-in-equals"/>
<column name="serie" length="2" />
</key-property>
<key-property name="numero" type="java.lang.Integer">
<meta attribute="use-in-equals"/>
<column name="numero" />
</key-property>
</composite-id>
<property name="tdoc" type="string">
<column name="tdoc" length="12" />
</property>
<property name="tped" type="string">
<column name="tped" length="12" />
</property>
<property name="txtped" type="string">
<column name="txtped" length="50" />
</property>
<property name="hora" type="string">
<column name="hora" length="4" />
</property>
<property name="oper" type="string">
<column name="oper" length="12" />
</property>
<property name="bases" type="java.lang.Float">
<column name="bases" precision="4" scale="0" />
</property>
<property name="impuestos" type="java.lang.Float">
<column name="impuestos" precision="4" scale="0" />
</property>
<property name="lineas" type="java.lang.Integer">
<column name="lineas" />
</property>
<property name="linbon" type="java.lang.Integer">
<column name="linbon" />
</property>
<property name="linsin" type="java.lang.Integer">
<column name="linsin" />
</property>
<property name="linpar" type="java.lang.Integer">
<column name="linpar" />
</property>
<property name="unifal" type="java.lang.Integer">
<column name="unifal" />
</property>
<property name="unibon" type="java.lang.Integer">
<column name="unibon" />
</property>
<property name="uniser" type="java.lang.Integer">
<column name="uniser" />
</property>
<property name="rure" type="string">
<column name="rure" length="12" />
</property>
</class>
</hibernate-mapping>
Any suggestions?
Cheers, Bo
|