jabbers
Explore posts from serversJCHJava Community | Help. Code. Learn.
•Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
Hello,
I have a maven springboot project using an H2 database. I have a module class with three fields; name, code and mnc
You can see the first few lines of this class below
As you can see code has a corresponding getter (getCode() method), and with my ModuleRepository interface:
You would expect the "code" variable to be visible when making a REST request. However, no matter what I seem to do, I can only seem to get the following response with two of the three variables.
As well as this, the
code
variable in the database is definitely updated, it just doesn't display in the json response.
Thanks in advance.29 replies