1 2 Previous Next 15 Replies Latest reply on Jul 23, 2002 8:38 PM by Dain Sundstrom

    CMP 2.0 relationship problem.

    Chris Richard Newbie

      Hi,

      I'm using JBoss3.0 with embedded Catalina 4.x with mySql.
      I have a entity bean named OrderBean with a orderType (int) attribute. This attribute can have values 1-4 and the relationship with one of MetalItemsBean, WoodItemsBean etc. depends on this value. This (lineItems like) beans have very different attributes and hence can't be combined into a single bean. Some of these beans even have (1-x) relationship with details beans.

      In a typical java model or JDO, its very easy to implement through polymorphism.

      But how do I design this in Entity Bean relationship??

      Thanks,
      Richard

        1 2 Previous Next