0 Replies Latest reply on Jan 9, 2005 8:08 AM by davout

    Optional CMP many-to-one relationship

    davout Newbie

      If I'm creating a CMP many-to-one relationship for an entity bean and that link is optional, if the link is not active must I set a null value into the field representing the many end of the relationhip?

      For example, I have an Address entity bean that includes an integer 'RegionID' field. This field value is optional. I want to create a relationship field that allows the Region entity to be accessed from the Address entity. As the address to region many-to-one link is optional must I set the default value of RegionID to be null?