db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bogdan Vatkov" <bvat...@globaltech-bg.com>
Subject Self referenced table/class in torque ? (torque-gen issue)
Date Fri, 16 Jan 2004 10:08:21 GMT
Hi All,
I am experiencing a problem with a self referenced tables:

for a trivial relation

---------------------------------------------------------
table/class A

A.id
A.data
A.B_id (references to B.id)
---------------------------------------------------------

---------------------------------------------------------
table/class B

B.id
B.data
---------------------------------------------------------

torque will create method series (with different parameters):

A.getBs(); that returns List.

BUT if A and B are merged into 1 table/class:

---------------------------------------------------------
table/class C

C.id
C.data
C.C_id (parent_id) (references to C.id)
---------------------------------------------------------

torque engine will not generate method series:

C.getCs(); that return List

and it will create method
C.getC(); that returns C

Is that right? or i am missing something. Could this issue be solved wihtout
changing the om tempaltes ?

With best regards,
Bogdan




---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message