Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Porting to websphere from weblogic - CMR

Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
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
    Bookmark Topic Watch Topic
  • New Topic