Skip to content

Commit

Permalink
Merge pull request #2 from theflexwork/feature/support-display-parent…
Browse files Browse the repository at this point in the history
…-account

Support parent account fields
  • Loading branch information
haiphucnguyen authored Nov 14, 2024
2 parents edf5fb9 + dce6921 commit fac6e4c
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 fac6e4c

Please sign in to comment.