• 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
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Bear Bibeault
  • paul wheaton
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Mikalai Zaikin
  • Piet Souris
Bartenders:

HFEJB Doubt-Entity Relations

 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic