optimize code

This commit is contained in:
mirrerror
2023-10-23 16:48:10 +03:00
parent 3f619eb01b
commit c07e3ca876
4 changed files with 14 additions and 56 deletions

View File

@@ -14,8 +14,8 @@ import java.time.LocalDate;
public class Income implements IMoneyTransaction {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Getter(AccessLevel.NONE)
private Long incomeId;
@Column(name = "income_id")
private Long id;
@ManyToOne
@JoinColumn(name = "user_uuid")
@@ -29,9 +29,4 @@ public class Income implements IMoneyTransaction {
private LocalDate date;
private BigDecimal amount;
@Override
public Long getId() {
return incomeId;
}
}