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 Fw: self refernece tabled with torque ? any familiar with this ?
Date Thu, 12 Feb 2004 19:31:11 GMT

----- Original Message -----
From: "Bogdan Vatkov" <bvatkov@globaltech-bg.com>
To: "TORQUE_LIST" <torque-user@db.apache.org>
Sent: Thursday, February 12, 2004 10:11
Subject: self refernece tabled with torque ? any familiar with this ?


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