Skip to content

Instantly share code, notes, and snippets.

@alexandre-jacquot-ptl
Last active May 26, 2021 21:10
Show Gist options
  • Save alexandre-jacquot-ptl/dedde869d48f5cbf099b8298cb89feac to your computer and use it in GitHub Desktop.
Save alexandre-jacquot-ptl/dedde869d48f5cbf099b8298cb89feac to your computer and use it in GitHub Desktop.
r2dbc item
@Table
@Getter
@Setter
@Accessors(chain = true)
@NoArgsConstructor
public class Item {
@Id
private Long id;
@Version
private Long version;
@Size(max=4000)
@NotBlank
private String description;
@NotNull
private ItemStatus status = ItemStatus.TODO;
private Long assigneeId;
@Transient
private Person assignee;
@Transient
private List<Tag> tags;
@CreatedDate
private LocalDateTime createdDate;
@LastModifiedDate
private LocalDateTime lastModifiedDate;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment