jabbers
jabbers
Explore posts from servers
JCHJava Community | Help. Code. Learn.
Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
thank u for ur help 😉
29 replies
JCHJava Community | Help. Code. Learn.
Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
i dont know how i didn't find this earlier, but this explains everything. im able to expose ids for certain classes now https://stackoverflow.com/questions/77273097/json-data-doesn-t-show-the-id-column-when-running-spring-boot-project
29 replies
JCHJava Community | Help. Code. Learn.
Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
So for whatever reason it just doesn't wanna show the primary key
29 replies
JCHJava Community | Help. Code. Learn.
Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
{
"code" : "AAA",
"mnc" : true,
"_links" : {
"self" : {
"href" : "http://localhost:2800/modules/bbb"
},
"module" : {
"href" : "http://localhost:2800/modules/bbb"
}
}
}
{
"code" : "AAA",
"mnc" : true,
"_links" : {
"self" : {
"href" : "http://localhost:2800/modules/bbb"
},
"module" : {
"href" : "http://localhost:2800/modules/bbb"
}
}
}
So, this is interesting - ur suggestion of moving the ID field to the name field actually worked
29 replies
JCHJava Community | Help. Code. Learn.
Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
literally just a typo
29 replies
JCHJava Community | Help. Code. Learn.
Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
thank you both for ur help ill let u know how i get on
29 replies
JCHJava Community | Help. Code. Learn.
Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
i will try it thank you
29 replies
JCHJava Community | Help. Code. Learn.
Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
because when u attempt to create a new module, the mnc is undefiined in the payload of the request from the frontend if its false. so, if mnc is null, its false, so i set default value to false
29 replies
JCHJava Community | Help. Code. Learn.
Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
uhhh, im not too sure what u meann here. I was just making sure the correct columns were marked as they are in db
29 replies
JCHJava Community | Help. Code. Learn.
Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
code is a unique value which identifies each row of t he db, if thats what ur asking
29 replies
JCHJava Community | Help. Code. Learn.
Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
wdym? its a GET request on /modules
29 replies
JCHJava Community | Help. Code. Learn.
Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
Anyone able to help ?
29 replies
JCHJava Community | Help. Code. Learn.
Created by jabbers on 11/30/2024 in #java-help
SpringBoot missing certain fields on auto generated repository
Not sure if it has something to do with code being the primary key - but I need the code as a variable in the response
29 replies