This week's book giveaway is in the Agile forum.
We're giving away four copies of Fixing your Scrum and have Ryan Ripley & Todd Miller on-line!
See this thread for details.
Win a copy of Fixing your Scrum this week in the Agile 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

container-managed relationship field

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi i did't understand the following lines in spec page no 130, can u explain the fallowing lines.

The accessor methods for a container-managed relationship field must be defined in terms of the local interface of the related entity bean


regards
Mohandodderi
 
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The accessor methods for a container-managed relationship field must be defined in terms of the local interface of the related entity bean



This means the relationship MUST bedefined in terms of the LOCAL interface (and NOT in terms of REMOTE interface) of the related entity bean.
 
Ranch Hand
Posts: 284
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This means also that only a bean with a local interface may be related to another. For a bean to be able to have a CMR field to another bean, the other bean must declare a local interface. The first bean doesn't need to declare one local interface, but if it does not, then the relation is unidirectional (the other bean cannot have a CMR field back to it).
 
reply
    Bookmark Topic Watch Topic
  • New Topic