79373290

Date: 2025-01-21 05:39:48
Score: 1.5
Natty:
Report link

I were facing this issue too when saving or updating entity in database, finally get rid of it using two ways:

  1. Either remove the @GeneratedValue(strategy = GenerationType.AUTO) or
  2. Don't send primary key value from webrequest using Post method from postman like application, because using if you are using @GeneratedValue(strategy = GenerationType.AUTO) it will automatically store primary key.
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Vishal Gupta