--- Hung Vu <[EMAIL PROTECTED]> wrote:

> Hi,
> Could you have the sample code to generate this
> mapping:
> <class name="StudentDiscipline"
>       table="Student_Discipline" lazy="true">
>       <composite-id name="id"  
>            class="StudentDiscipline$Id"
>            unsaved-value="any">
>            <key-property name="studentId"
>                  access="field"
>                  column="Student_id"
>                  length="16"/>
>   
>           <key-property name="disciplineId"
>                  access="field"
>                  column="Discipline_Id"
>                  length="16"/>
>       </composite-id>

unit tests for xdoclet 2 hibernate plugin contain
such examples. Typically composite ID is mapped
with dedicated class. 

regards,



----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to