Skip to content
Snippets Groups Projects
Commit 7a4f4ca7 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Refactoring: fixed Transactional calls

parent adc3e49d
No related branches found
No related tags found
No related merge requests found
Pipeline #6065 failed
......@@ -76,6 +76,7 @@ public class AccountService implements Resettable, AccessAllEntities<Account>, A
return accountRepository.findById(ID);
}
@Transactional
public void deleteAccount(int ID)
{
Optional<Account> accountToDeleteOptional = accountRepository.findById(ID);
......@@ -223,6 +224,7 @@ public class AccountService implements Resettable, AccessAllEntities<Account>, A
}
}
@Transactional
public void updateExistingAccount(Account newAccount)
{
Optional<Account> existingAccountOptional = accountRepository.findById(newAccount.getID());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment