Error while saving @ManyToMany - Spring Boot

-1

Good afternoon, I have a relatively simple question, but I'm a bit confused.

I have the following relationship:

Asyoucanseeitisarelationship@ManyToMany

Ineedtosaveanewgame,soIneedtosaveitinaBidirectionalway.ButwhensavingIcomeacrossthefollowingerror:

IwouldliketoknowhowtosaveanewGames.Belowisthecode.

Entity-Games  

Entity-Campus

savemethodofResourceGames

TheJSONthatcomestometosaveisthis:

OBS-Youremovethecascade=CascadeType.ALLfromthelistunderGames.Givesthefollowingerror:

In short. How do I get these Games that came and save it, so Bidirectional ?

    
asked by anonymous 25.12.2018 / 20:47

0 answers