Foo has:
@ManyToMany(mappedBy = "foos")
private Set<Bar> bars
and Bar has :
@ManyToMany
private Set<Foo> foos
What difference does the location of mappedBy attribute make to a bi-directional relationship , other than whether table is called foo_bar, or bar_foo; and without the mappedBy attribute I get two join tables, both foo_bar and bar_foo.