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.
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.