Skip to content

refacto: use Set to declare @ManyToMany relations to improve JPA performance

Nicolas.Rod requested to merge rodn-use-set-for-many-to-many-relations into master

While working on the AssociationController I came across several articles indicating that it is better to use a Set than a List to declare @ManyToMany relationships.

An example here: https://vladmihalcea.com/the-best-way-to-use-the-manytomany-annotation-with-jpa-and-hibernate/

Merge request reports