Skip to content

Instantly share code, notes, and snippets.

@thombergs
Created September 26, 2019 13:51
Show Gist options
  • Save thombergs/c29b629fbe8b6511058829ec7de4c0c6 to your computer and use it in GitHub Desktop.
Save thombergs/c29b629fbe8b6511058829ec7de4c0c6 to your computer and use it in GitHub Desktop.
AccountPersistenceAdapter
@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