0 Replies Latest reply on Apr 22, 2005 3:21 PM by Jeff Larsen

    Mapping field names to column names for CMR fields

    Jeff Larsen Newbie

      I am try to set up a relationship between 2 CMP entities. But the column names in the two database tables are not the same. Also, the field name (i.e., bean property name) differs from the column name.

      Table: customer, Column: default_addid
      Table: address, Column: addid

      customer.default_addid is a foreign key to address.addid

      CustomerBean field: defaultAddress
      AddressBean primary key field: addressID

      How do I set up the jbosscmp-jdbc to tell jboss the column name for default_addid? The documentation (that I've found so far) only covers the most rudimentary examples and does not discuss issues dealing with existing database tables.