Skip to content

Commit

Permalink
Support parent account fields
Browse files Browse the repository at this point in the history
  • Loading branch information
haiphucnguyen committed Nov 14, 2024
1 parent edf5fb9 commit dce6921
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public class AccountDTO {

private Long parentAccountId;

private String parentAccountName;

private LocalDateTime createdAt;

private LocalDateTime updatedAt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
public interface AccountMapper {
// Mapping from entity to DTO
@Mapping(target = "parentAccountId", source = "parentAccount.id")
@Mapping(target = "parentAccountName", source = "parentAccount.name")
@Mapping(target = "assignedToUserId", source = "assignedToUser.id")
AccountDTO toDto(Account account);

Expand Down

0 comments on commit dce6921

Please sign in to comment.