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?
Will.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev