Hello All,
I have started reading JPA from EJB3 in Action by (Debu Panda, Reza Rahman, Derek Lane). In that book, for @OneToMany and @ManyToOne (also in @OneToOne) under bidirectional relationship,an explanation on "MappedBy" was given.
From the example mentioned in the book,
where there is a bidirectional one to one relationship between User and BillingInfo.
From the above example, based on the explanation given,
The first is the mappedBy="billingInfo" specification C. This
tells the container that the “owning” side of the relationship exists in the User
class’s billingInfo instance variable. The concept of a relationship owner doesn’t
originate from domain modeling. It exists as a convenience to define the database
mapping for a relationship only once instead of repeating the same mapping for
both directions of a relationship.
To be honest with you, I did not understand this clearly. Could some one help me digest this ?
One more irrelevant question, If we learn JPA, would it be easy to understand Hibernate ORM with out much learning curve ?