Re: help on composite-id tag

Konstantin Priblouda <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>

--- 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.