Hi all,
I try to anderstand how to generate a class hierarchy with Torque, and
multiple relation...
My problem is to generate that:
|Item |*--|
------- |
^ |
| |
Group*---|
Sorry for my UML in ascii, is not perfect :-/
I want generate a class "item", from witch one herit "Group".
Group containd multiple "item" and "item" cas be containd by multiple group.
So, 2 questions:
How work hierarchy?
------------------
I start to wrote that:
<table name="MyTable" javaName="Item" idMethod="autoincrement">
<column name="CLASS" inheritance="single" type="CHAR" size="5"...>
<inheritance key="G" class="Group"
extends="pf.cs.csinterne.business.om.Item"/>
</column>
<column name="ID" required="true" autoIncrement="true" primaryKey="true"
type="INTEGER">
<column name="GROUP_ATTRIBUT" required="true" type="INTEGER"
javaName="att1"/>
</table>
But, I dont anderstand how to create GROUP_ATTRIBUT only on group class...
an no on the mother class item.
It is possible to manipulate n to n relation with peer?
-------------------------------------------------------
Thanks for that.
Xavier.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]