From: <bal...@qu...> - 2005-01-30 21:38:17
|
Hi, I think this version (jan 30) is better but also not correct the generated code is: <set name=3D"Users" order-by=3D"USERS=5FFK" lazy=3D"true" inverse= =3D"true"> <key> <column name=3D"USERS=5FFK"/> </key> <many-to-many class=3D"com.resr.impala.model.ProgramUserImpl"/> </set>=20 a good the sample (from the hibernate site): set name=3D"authors" table=3D"author=5Fwork" lazy=3D"true"> <key> <column name=3D"work=5Fid" not-null=3D"true"/> </key> <many-to-many class=3D"Author"> <column name=3D"author=5Fid" not-null=3D"true"/> </many-to-many> </set> So I think table is missing from the set tag and column name is also=20 missing from the many-to-many tag.... :( it is a little template issue as=20 i see Thanks! Ganszky Bal=E1zs mailto:bal...@qu... 1119. Bp. Zsombor u. 15. Tel: +36 (1) 371-2200 Fax: +36 (1) 371-2210 www.qualysoft.com "Chad Brandon" <chd...@ya...> 2005.01.28 15:43 =20 To: <bal...@qu...>, <and...@li...urce= forge.net> cc:=20 Subject: RE: [Andromda-user] table name - in many-to-many re= lationship - howto This is fixed in the latest nightly snapshot (if you upgrade to that). Otherwise you'll need to change the template yourself. =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F From: and...@li... [mailto:and...@li...] On Behalf Of bal...@qu... Sent: Friday, January 28, 2005 4:21 AM To: and...@li... Subject: [Andromda-user] table name - in many-to-many relationship - howto Hi!=20 I have a many-to-many relation in my model (using magic-draw)=20 in the xml file the following code describes in one of my object this relationship:=20 =A0 =A0 =A0 =A0 <set name=3D"Liablities" order-by=3D"LIABLITIES=5FFK" lazy= =3D"true" inverse=3D"true">=20 =A0 =A0 =A0 =A0 =A0 =A0 <key>=20 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <column name=3D"LIABLITIES=5FFK"/>=20 =A0 =A0 =A0 =A0 =A0 =A0 </key>=20 =A0 =A0 =A0 =A0 =A0 =A0 <many-to-many class=3D"com.resr.impala.model.Liabil= ityImpl"/>=20 =A0 =A0 =A0 =A0 </set> =A0 =A0=20 OK sounds good but the table name is missing...=20 How can I define to create - interpret it... anyway it looks like there is = a table in the hibernate-shema....sql file for this...=20 Thanks=20 Ganszky Bal=E1zs mailto:bal...@qu... 1119. Bp. Zsombor u. 15. Tel: +36 (1) 371-2200 Fax: +36 (1) 371-2210 www.qualysoft.com |