Re: help on composite-id tag

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

> 
> 
> --- 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,
> 
> 

   I forgot to say that I'm using
xdoclet-1.3-SNAPSHOT. I read
hibernate-composite-id$method.xdt, 
hibernate-composite-id$class.xdt files and tried many
time but wasn't successful.

Could you have any help on this version ?
Regards,
Hung

__________________________________________________
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.