'Spring Boot: @Id categorizes Element as new, when it has 0 in the Id field
I've updated my Spring Version to the newest (2.6.6) due to the Security Vulnerability Spring4Shell. Before the update, everything has worked as expected.
I have a Table with different Topics and one of them has the Id 0. Everytime i want to make a Post Request with an Element that has this Topic, i'm getting this Error:
I can't change the Id to an other value, as it has a connection to physical Stuff. Is there any workaround (or a property that i can set), so that Spring Accepts 0 as an Id?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|