79592131

Date: 2025-04-25 08:38:39
Score: 1
Natty:
Report link
I was looking for a solution to the same issue and found the answer myself.
Write the code below.


@Id
@Column(name = "id", unique = true, nullable = false, insertable = false, updatable = false, columnDefinition = "bigint generated always as identity")
private Long id;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Archanfel