This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to manipulate CMR in Weblogic8.1?

Robert Strong
Ranch Hand
Posts: 84
  • 0
  • 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!!
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic