Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Porting to websphere from weblogic - CMR

Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
get schwifty. tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic