Skip to content
Advertisement

One to One Mapping Spring boot

Hello everyone in advance I have a problem with my one to one connection when I try to log in to the “user” I get this error

what i need is a one to one connection that does not have to be persistent that means a user can have a player but does not have to have it and the other way around

Since in my case the Minecraft server is supposed to fill the player table and the website fills the users so that they can be connected.

User Entity :

Player Entity :

Flyway user :

Player Flyway :

Advertisement

Answer

The error is quite clear

the player table does not have a player column

the error is here:

change to:

It is the column by which the join with user is established.

As a recommendation, there are configuration parameters for the JPA implementation to validate the correct modeling of the entities without the need for queries, find out how to activate it with the implementation you have chosen.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement