Given the container-managed unidirectional relationship:
Foo(0-1) -> Bar(0-1)
and the object relations:
What will be true after the following code runs?
The model solution states 'b2.getFoo()==null' as one of the correct answers. But given that Foo and Bar are in a unidirectional relationship where Bar is even aware of the relationship, isn't it true that the b2.getFoo() method does not exist? In the DD, we would not declare <cmr-field> for the Bar part. So how can the method getFoo() be called on b2?