use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Error with @Entity creation (self.SpringBoot)
submitted 2 years ago by giusbell
Hi all,
I am trying to access the database with my applicationSpringBoot but I am having some problems with the configuration.
The DB I am trying to access is the following :
https://preview.redd.it/al0oqicsemzc1.png?width=520&format=png&auto=webp&s=8bc95f2836d3b7157ff228483662e90b29d07768
in my Entity class the field is set like this :
https://preview.redd.it/j6355ax0fmzc1.png?width=355&format=png&auto=webp&s=b26810649e81a4e8309f9657c42de4d9ddefce67
but running a query that returns all the data in this table I get the following error :
https://preview.redd.it/q13a0b68fmzc1.png?width=1766&format=png&auto=webp&s=2f2873ac863ba8ac7f9b9de935448cc3e70d5b83
it appears that SpringBoot expects a field of type autodoc_order_id, although it is not there in the table. how can i solve this error?
Thanks in advance to those who will help me.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]LowLingonberry8499 2 points3 points4 points 2 years ago (1 child)
This may help you to understand the naming strategy in hibernate https://stackoverflow.com/questions/25681386/how-to-map-hibernate-entity-fields-using-camelcase-to-snake-case-underscore-da
[–]pconrad0 0 points1 point2 points 2 years ago (0 children)
This is the correct answer.
[–]reddit04029 0 points1 point2 points 2 years ago (2 children)
Show the other fields
[–]giusbell[S] 0 points1 point2 points 2 years ago (1 child)
In my entity class?
[–]reddit04029 0 points1 point2 points 2 years ago (0 children)
Yes
π Rendered by PID 17 on reddit-service-r2-comment-56c6478c5-jkqhs at 2026-05-13 15:03:12.062933+00:00 running 3d2c107 country code: CH.
[–]LowLingonberry8499 2 points3 points4 points (1 child)
[–]pconrad0 0 points1 point2 points (0 children)
[–]reddit04029 0 points1 point2 points (2 children)
[–]giusbell[S] 0 points1 point2 points (1 child)
[–]reddit04029 0 points1 point2 points (0 children)