user questions should go to the user forums...http://forum.hibernate.org

/max


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

                
---------------------------------
Yahoo! Mail for Mobile
 Take Yahoo! Mail with you! Check email on your mobile phone.




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to