Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

container-managed relationship field  RSS feed

 
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
 
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.
 
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).
 
If tomatoes are a fruit, then ketchup must be a jam. Taste this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!