Skip to content
Advertisement

Spring Boot JPA unknown column in field list

In MySQL I have script that create table

JavaScript

In java class i have model to this table

JavaScript

In Repository package

JavaScript

In client site i try send in request login and password but i have error in server site

JavaScript

‘ That mean I should change my column name in MySQL table to account_id?

Advertisement

Answer

“That means I should change my column name in MySQL table to account_id”

Yep, this is a good idea because of naming convention, but also you can configure proper naming strategy:

JavaScript

Or you can try to print your column name in lower case. (If your MySQL is Windows based)

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