This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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."