My question is: MiddleGen automatically creates this TbServicoDncPK, it´s another class when i use CodeGen.My code becomes more complex. so.... continues after the listed code
<
class name="com.ccne.bo.TbServicoDnc" table="TB_SERVICO_DNC"> <composite-id name="comp_id" class="com.ccne.bo.TbServicoDncPK"> <key-property name="codTipoFamiliaInsumo" column="COD_TIPO_FAMILIA_INSUMO" type="byte" length="2"/><key-property name="codDependencia" column="COD_DEPENDENCIA" type="int" length="10"/>
<key-property name="codFamiliaDnc" column="COD_FAMILIA_DNC" type="int" length="10"/> <key-property name="codServicoDnc" column="COD_SERVICO_DNC" type="int" length="10"/> </composite-id>i´m erasing this PK classes like this:
....
<composite-id >
.....
It has no name and i erase the class ..PK too.I work with many composite-id´s is it ok what i´m doing?
thanks in advance
Luiz Octavio Godoy
Desenvolvimento de Sistemas
Desenvolvimento de Sistemas
Yahoo! Mail for Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.