1. When using Container Managed Relationship (CMR), we are having a situation where a parent entity bean contains a collection of child beans as CMR. In addition the child entity bean has the parent ID (ID only and not the object) as a CMP. In weblogic in this situation, the CMP field in the child will automatically become Read-only. However, this future does'nt seems to be supported in websphere 5.0. Can you confirm this and suggest we we need to do in order for it to work? E.g.: I have EBTeam and EBTeamMember as two entity beans. EBTeam contains a Collection of EBTeamMemberLocal as a CMR. At the same time EBTeamMember contains the teamID (primary key of the EBTeam) as a CMP field. We observed that in the websphere's .tblxmi it generates, it puts the same field of TEAM_ID twice. This causes name collusion when running this application
2. More important thing is the self CMR. In this case, we have an entity bean which has a CMR field to itself. E.g.: EBEmployee entity bean. In the database, both employee and the manager are in the same table with a self referenceing relationship. So in weblogic, we specify this by saying EBEmployee entity bean has a CMR field as "manager" which is of type EBEmployeeLocal (the local interface). Websphere doesn't complain all the way to installing and running application. However, at run time, the parent object (manager) always returnign null though there is revelent data in the DB. Can somebody put more light on these issues. Thanks.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop