add families
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user