0 Replies Latest reply on Dec 8, 2002 11:29 AM by Jim

    A quick howto please: unidir cmr creation

    Jim Newbie

      Hi,

      There should be a quick answer to this.

      I have two entity beans:Organization and Gangster.

      The relationship is unidirectional - i.e. Gangsters don't know about which organization they belong to but an Organization has a cmr field, 'Set gangsters'. I dont have a cmr field called 'Organization organization' in my Gangster entity bean.

      Now, when I create a gangster, how should I update the Organization's gangster collection to reflect the new gangster?

      Is it as simple as finding the Organization and invoking a custom method 'addGangster'?

      Regards
      Joe