Unidirectional vs bidirectional ManyToOne


#1

At http://docs.jboss.org/hibernate/orm/5.3/userguide/html_single/Hibernate_User_Guide.html#best-practices-mapping-associations it is stated that “Bidirectional associations are usually a better choice because the @ManyToOne side controls the association”.

Does this mean that a unidirectional @ManyToOne relationship is worse than a bidirectional one?


#2

No. A unidirectional @ManyToOne is just as good a a bidirectional @OneToMany. The comparison was between bidirectional and unidirectional @OneToMany.


#3

Thanks for clarifying.