• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Doubt in Entity Bean Relationship

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please help me
 
Suresh Babu Shanmugam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
:-)
reply
    Bookmark Topic Watch Topic
  • New Topic