Created
September 26, 2019 13:51
-
-
Save thombergs/c29b629fbe8b6511058829ec7de4c0c6 to your computer and use it in GitHub Desktop.
AccountPersistenceAdapter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RequiredArgsConstructor | |
@Component | |
class AccountPersistenceAdapter implements | |
LoadAccountPort, | |
UpdateAccountStatePort { | |
private final AccountRepository accountRepository; | |
private final ActivityRepository activityRepository; | |
private final AccountMapper accountMapper; | |
@Override | |
public Account loadAccount( | |
AccountId accountId, | |
LocalDateTime baselineDate) { | |
// ... | |
} | |
@Override | |
public void updateActivities(Account account) { | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment