Income Testing Add

This commit is contained in:
Dmitrii Cravcenco
2023-12-05 10:11:10 +02:00
parent 0fcacc3e88
commit 0eecbd5907
3 changed files with 125 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ import java.time.LocalDate;
@AllArgsConstructor
@NoArgsConstructor
@Entity(name = "incomes")
@Builder
public class Income implements IMoneyTransaction {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)

View File

@@ -34,8 +34,8 @@ public class User {
private String username;
@Transient
@NotNull(message = "Password must not be null")
@NotEmpty(message = "Password must not be empty")
// @NotNull(message = "Password must not be null")
// @NotEmpty(message = "Password must not be empty")
private String password;
@OneToMany(mappedBy = "user", fetch = FetchType.LAZY)