1 Reply Latest reply on Apr 3, 2003 5:09 AM by lsloh

    How to specify this relation using jbosscmp-jdbc/xdoclet ?

    lsloh Newbie

      I have the following model :-
      ___________ __________________________
      | Customer|------ | Contact |
      | cust_id | 1 * | cont_id |
      -------------- | cont_type e.g. ship, bill |
      ---------------------------------

      So basically different types of contacts have the same fields. I have the following tables.

      customer----cust_id ------ contact
      cont_type
      cont_id

      I can do a m:n CMR relationship - but without contact type since it doesn't exist in Contact or Customer. Seems like I have to implement a EJB that models the relationship. Ideas for any other possibilities would be appreciated.

      Thanks.

      LS