modified User to do not serialize id (#19, #18)

This commit is contained in:
Art
2021-09-18 08:43:00 +03:00
parent 679d13abad
commit b79e9cbda9
3 changed files with 13 additions and 12 deletions

View File

@ -24,6 +24,7 @@ public class User implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@EqualsAndHashCode.Include
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private Long id;
private String userId;