This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "possible error in SCBCD prep question?" Watch "possible error in SCBCD prep question?" New topic
Author

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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: possible error in SCBCD prep question?
 
Similar Threads
EJB Entity: ManyToMany and Delete
Owner of the RelationShip
Enthuware standard tests doubts
@ManayToMany
@mappedBy