add families

This commit is contained in:
mirrerror
2023-12-12 22:41:14 +02:00
parent 3fbd7a1440
commit 2f56a5b76d
12 changed files with 156 additions and 56 deletions

View File

@@ -0,0 +1,14 @@
package com.faf223.expensetrackerfaf.dto;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class FamilyDTO {
@NotNull(message = "Name must not be null")
@NotEmpty(message = "Name must not be empty")
private String name;
}