diff options
| author | realtradam <[email protected]> | 2024-07-18 21:45:42 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-07-18 21:45:42 -0400 |
| commit | 627100d9d5f03eee6ba2b4ec55bebd8367d5d641 (patch) | |
| tree | e69ecf7ed1cfbfbfe6cda7bcd4bf409bbf8169a9 /src/main/java/com/blog/web/dto/RegistrationDto.java | |
| parent | 2a43a36f448980b5f15f73dbcfab850441e69fdf (diff) | |
| download | spring-blog-627100d9d5f03eee6ba2b4ec55bebd8367d5d641.tar.gz spring-blog-627100d9d5f03eee6ba2b4ec55bebd8367d5d641.zip | |
add test for articlerepository
Diffstat (limited to 'src/main/java/com/blog/web/dto/RegistrationDto.java')
| -rw-r--r-- | src/main/java/com/blog/web/dto/RegistrationDto.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/com/blog/web/dto/RegistrationDto.java b/src/main/java/com/blog/web/dto/RegistrationDto.java index ca9fed5..fcf5f90 100644 --- a/src/main/java/com/blog/web/dto/RegistrationDto.java +++ b/src/main/java/com/blog/web/dto/RegistrationDto.java @@ -1,5 +1,6 @@ package com.blog.web.dto; +import com.blog.web.models.UserEntity; import jakarta.validation.constraints.Min; import jakarta.validation.constraints.NotEmpty; @@ -12,6 +13,18 @@ public class RegistrationDto { @NotEmpty private String password; + public RegistrationDto() {}; + + public RegistrationDto( + String username, + String email, + String password + ) { + this.username = username; + this.email = email; + this.password = password; + } + public Long getId() { return id; } |
