• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
:-)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic