Thread:
 Many-to-Many relationships - Mysql 4.1 
 vivekvik   15 Dec 2004, 15:32 
 Re: Many-to-Many relationships - Mysql 4.1 
 gastaldi   21 Dec 2004, 15:03 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: gastaldi (21 Dec 2004, 15:03) Replies: 0, Views: 38366
Subject: Re: Many-to-Many relationships - Mysql 4.1
Hi,

You have to specify all the other tables, otherwise middlegen will
generate code only for what you have specified.

On 15 Dec 2004 15:32, vivekvik wrote:

>After I added this many-to-many restraint, all the other tables in my
>schema (except groups and merchants) disappeared. The middlegen view
>now only shows 2 tables!! This is what my ant task looks like:

       <table name="table_1"/>
       <table name="table_2"/>

>       <many2many>
>            <tablea generate="true" name="MERCHANTS" />
>            <jointable name="GROUPS_MERCHANTS" generate="false" />
>            <tableb generate="true" name="GROUPS" />
>       </many2many>

This way works for me.
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]