--- Marvin Froeder <[EMAIL PROTECTED]> wrote:

> Hi people,
> 
> I would like to create a Map many-to-many between
> the key and the value.
> 
> Code:
> 
>       /**
>        * @hibernate.map lazy="false" cascade="none"
>        *                table="REL_QUESTION_ANSWER"
>        * @hibernate.map-key-many-to-many
> class="pojo.Question"
>        * @hibernate.many-to-many class="pojo.Answer"
>        */
> 
> They generete the XML mapping, but is something
> wrong.  I try to
> generate the SQL code but the table
> REL_QUESTION_ANSWER is not
> created.
>

Try something like this:
     * @hibernate.map                  inverse="true"
cascade="delete"
     *      lazy="true" order-by="dateMillis"
table="Request"
     * @hibernate.key                 
column="project"
     * @hibernate.index-many-to-many  
class="de.jtec.jobdemo.beans.Profile"
     *      column="profile"
     * @hibernate.one-to-many         
class="de.jtec.jobdemo.beans.Request"


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 


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to