Spring Boot insert problems

1

I'm trying to insert a user into the PostgreSQL database on the Heroku web server.

The user attributes in the PostgreSQL database

Asyoucanseethereisacolumncalledgroups,andeverytimeI'mtryingtosubmittheformitsavesallthedataintheothercolumnsexceptthegroups,IdideverythingrightintheimplementationandIdonotknowthewhichiswrong.

SoaftersubmittingtheformwhenIchecktomakeaselectinthetablethefieldisnull,butIputaprintinthecontrollertoseeifitisactuallysendingthedataasinthecodebelow;

System.out.println(

asked by anonymous 03.07.2017 / 21:39

1 answer

1

Good evening as far as I know ManyToMany relationship creates a third table with the key in the case of user and group. That is why he showed that there is nothing wrong. When you retrieve this entity does it bring the list of groups filled?

    
04.07.2017 / 00:44