• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFEJB Doubt-Entity Relations

 
Raghunath Nandyala
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
 
Arun Natarajan
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic