• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

container-managed relationship field

 
mohan dodderi
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • 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
 
Ankit Doshi
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • 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.
 
Frederic Esnault
Ranch Hand
Posts: 284
  • Mark post as helpful
  • send pies
  • 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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic