Hello all,
I need to tree model into
EJB Cat1
-sub Cat 2
---sub cat 3
---- sub cat 4
------ Prod 1
------ Prod 2
Cat2
-sub Cat 5
--sub cat 6
--- Prod 3
--- Prod 4
So there can be infinite sub categories under each category and under each category there can be products associated to that category/sub category.
How will I model it in EJB? . I was looking at Composite Entity
pattern listed under the GOF. But in CMP, it is not recomended to use this pattern as it mentions that it was created with EJB 1.x.
So I am stuck and really would like some inputs from you all
Sammy