• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

HFEJB Doubt-Entity Relations

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

I struck at one question :
HFEJB Page 431 Q1

What's true for an entity bean provider using CMP to create persistent relationships?

A. A local inter face is reqired for such a bean to have a bidirectional relationship with another entity bean

B. Such a bean can have relationships with only session beans

C. Relationshps can be only one-to-one or one-to-many.

D. A getter method return type can be java.util.List


Ans:A

I know B,C,D are wrong.my doubt is why A is correct.

Can you please explain this.

Thanks
Raghunath N
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If bean 'A' is in a bi-directional relationship with bean 'B', that means it is a cmr field in bean B. And only local interfaces can be used for cmr fields. hence the answer A is correct.

Regards,
Arun N
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!