Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

possible error in SCBCD prep question?

 
Uchana Jackson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


/**************************************************************/

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