File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes how to manipulate CMR in Weblogic8.1? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to manipulate CMR in Weblogic8.1? " Watch "how to manipulate CMR in Weblogic8.1? " New topic
Author

how to manipulate CMR in Weblogic8.1?

Robert Strong
Ranch Hand

Joined: Sep 10, 2002
Posts: 84
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: http://aspose.com/file-tools
 
subject: how to manipulate CMR in Weblogic8.1?