Skip to content

Commit

Permalink
refactor: 영수증 entity에서 updateUpperClass 메서드를 update 메서드로 병합
Browse files Browse the repository at this point in the history
  • Loading branch information
jj0526 committed Nov 26, 2024
1 parent 495cfae commit e467330
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,11 @@ public class Receipt extends BaseEntity {

private LocalDate date;

@Convert(converter = FileListConverter.class)
private List<String> images;

@ManyToOne
@JoinColumn(name = "account_id")
private Account account;

public void update(ReceiptDTO.Update dto){
this.updateUpperClass(dto);
}

public void updateUpperClass(ReceiptDTO.Update dto) {
this.description = dto.description();
this.amount = dto.amount();
this.date = dto.date();
Expand Down

0 comments on commit e467330

Please sign in to comment.