Fix expense/income creation
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.faf223.expensetrackerfaf.dto;
|
||||
|
||||
import com.faf223.expensetrackerfaf.model.IncomeCategory;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -9,10 +10,11 @@ import java.time.LocalDate;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@JsonIgnoreProperties({"incomeCategory"})
|
||||
public class IncomeDTO {
|
||||
private long incomeId;
|
||||
private UserDTO userDTO;
|
||||
private IncomeCategory category;
|
||||
private IncomeCategory incomeCategory;
|
||||
private LocalDate date;
|
||||
private BigDecimal amount;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user