I am reading currently the documentation of Hibernate regarding the entity associations and I come accross a little difficulty to figure out some things. It has to do in ess
While above answers are accurate, I will present the answer in a different way.
Both @OneToMany and @ManyToOne have two parts; left part and right part.
For example;
@OneToMany = 'One' is left part and 'Many' is right part likewise @ManyToOne = 'Many' is left part and 'One' is right part.
Simple rule of association using this understanding is, left part represents the class that you are defining the association.
So, if you define @ManyToOne in OrderLine class referencing to Order class, it means many OrderLine associated to one Order class.