• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in Entity Bean Relationship

 
Suresh Babu Shanmugam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
In HFEJB, page number 432(Coffee cram mock exam answers), I have doubt in answer for question number 4. which says

[B]Given the container-managed unidirectional relationship:

Foo(0-1) --> Bar(0-1)

And the object relations:

f1 --> b1
f2 --> b2

What will be true after the following code runs? (Choose all that apply.)



A. f1.getBar()==null
B. b2.getFoo()==null

C. b1.getFoo()==null
D. none of the above[/B]

Choice A and B ar given as answer. Choice A is fine. But the choice B is not possible because in unidirectional relation as specified above, b2.getFoo() method is not available to Bar bean. Please correct me if I am wrong.
[ February 13, 2007: Message edited by: Suresh Babu Shanmugam ]
 
Suresh Babu Shanmugam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me
 
Suresh Babu Shanmugam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
:-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic