Created
December 26, 2019 12:38
-
-
Save kubawieczorek/db4b9c6c602628a47bd8d98a07a97af2 to your computer and use it in GitHub Desktop.
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
@Transactional | |
public Account registerNewAccount(Client client){ | |
Account account = new Account(); | |
account.setMoney(0); | |
account.setNumber(randomUUID().toString()); | |
account.setDateCreated(Instant.now()); | |
account.setClient(client); | |
return accountRepository.save(account); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment