wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes possible error in SCBCD prep question? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "possible error in SCBCD prep question?" Watch "possible error in SCBCD prep question?" New topic

possible error in SCBCD prep question?

Uchana Jackson
Ranch Hand

Joined: Dec 07, 2007
Posts: 37


Please explain to me why option D is correct. I do not understand how mappedBy="faculty" is the inverse side of the relationship.

Perhaps option D should read as follows:

on the faculty field. Also why is option C incorrect?

According to JPA book by Mike Keith:

"No matter which side is designated as the owner, the other side should include the mappedBy element, otherwise the provider will think that both sides are the owner and that the mappings are separate unidirectional relationships."

page 102

also see the example on page 101.

SCJP 1.4<br />SCBCD 5
It is sorta covered in the JavaRanch Style Guide.
subject: possible error in SCBCD prep question?
Similar Threads
EJB Entity: ManyToMany and Delete
Enthuware standard tests doubts
Owner of the RelationShip