Last active
May 18, 2021 15:59
-
-
Save alexandre-jacquot-ptl/f78713b2d63b9b381c1c17b8ecb0b32c to your computer and use it in GitHub Desktop.
r2dbc person
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) | |
public class Person { | |
@Id | |
private Long id; | |
@Version | |
private Long version; | |
@NotBlank | |
@Size(max=100) | |
private String firstName; | |
@NotBlank | |
@Size(max=100) | |
private String lastName; | |
@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