Spring boot :Hibernate annotation
Spring boot :Hibernate annotation
I recommend you the blog of Vlad Mihalcea, I learned so much about Hibernate there. Here you can find also examples for ManyToMany relationships
And you should escape the column names, as en example joinColumns = { @JoinColumn(name = id_foramteur) }
instead of joinColumns = { @JoinColumn(name = idForamteur) }
.
And with Lombok you can get rid of getter & setter with a single annotation.