1 Reply Latest reply on May 1, 2004 3:16 AM by aloubyansky

    CMR question

    microbiotic

      Hi,

      I'm new to jboss and entity beans and need some help mit CMR.

      I use a unidirectional 1 to n CMR with foreign key mapping . My question is : If I add a new record with the right foreign key mapping in my "relation-target table" - does jboss recognize this at once and knows that there is a new association ? Or do I have to add this new record via the CMR methods given from the container ?

      Same question wit m to n relations but bidirectional.

      Thanks for help.

      Regards,
      Marcel

        • 1. Re: CMR question
          aloubyansky

          It depends on caching. If the CMR value is cached this cached value will be used, not the one that is actually in the db. See commit options. Use commit option C if you need to do this.