From Nested Sets to Trees
843854May 30 2003 — edited May 30 2003Hi All
I need to construct a tree in java objects out of a table that has a nested set ( Joe Celko ) .
I have the table
Products
ProductID number primary key
Left number
Right number
A wanted to construct a tree base on the following
class Product {
Integer ProductID;
Product left;
Product right;
.....
}
Does anyone know of a example/tutorial that explains this
thanks