Last active
May 26, 2021 21:10
-
-
Save alexandre-jacquot-ptl/dedde869d48f5cbf099b8298cb89feac to your computer and use it in GitHub Desktop.
r2dbc item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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