Nelio Alves
DevSuperior - Escola de programação
Bootcamp Spring React - Matrículas abertas só até sexta-feira!
https://devsuperior.com.br/bootcamp
@ManyToMany
@JoinTable(name = "tb_follows",
joinColumns = @JoinColumn(name = "user_id"),
inverseJoinColumns = @JoinColumn(name = "followed_id"))
Set<User> following = new HashSet<>();
@ManyToMany(mappedBy = "following")
Set<User> followers = new HashSet<>();