-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, September 19, 2001 1:03 PM
>To: [EMAIL PROTECTED]
>Subject: [castor-dev] REPOST: Are list and array relationships suppo
>
>
I've come across some e-mails and some documentation which are confusing me.
>
>
I want a database relationship which is a tree. There's a basic CastorNode,
>
and one of the properties of the CastorNode can be a java.util.List of other
>
CastorNodes.
>
>
For ease of use, I'd prefer to keep the position of the list outside of the
>
main tables, so I would have two tables:
>
>
create table node (
>
id integer not null primary key,
>
title varchar(30) not null,
>
description varchar(250)
>
);
>
>
create table node_list (
>
parent_id integer not null,
>
child_id integer not null,
>
position integer not null,
>
primary key (parent_id, child_id)
>
);
>
>
Assuming that CastorNode return List, and the list contains CastorNodes.
>
>
Is this possible under the current Castor framework?

No

 

 

Thomas

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev

Reply via email to