Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to manipulate CMR in Weblogic8.1?  RSS feed

Robert Strong
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not clear about how to manipulate CMR in Weblogic8.1.

for 1 to 1 CMR:
suppose there're two entity CMP beans: ManCMP and WomanCMP, when a man marries a woman, use manCMP.setWoman(womanCMP) to establish relationship. if a man divorce a woman, how to sever the relationship? can just use manCMP.setWoman(null)?

for 1 to N CMR:
like a Person and Address relationship, when a Person want to remove an address(just cut off relationship, do not delete address), should it be like below:

ArrayList addressList = person.getAddresses();
addressList.removeAt(i); ???

or like this:

address.setPerson(null); ???

for N to N relationship
can sever relationship the same way as 1 to N relationship?

any help appreciated!!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!