Class AccountService

java.lang.Object
org.mybatis.jpetstore.service.AccountService

@Service public class AccountService extends Object
The Class AccountService.
Author:
Eduardo Macarron
  • Constructor Details

    • AccountService

      public AccountService(AccountMapper accountMapper)
      Instantiates a new account service.
      Parameters:
      accountMapper - the account mapper
  • Method Details

    • getAccount

      public Account getAccount(String username)
      Get account.
      Parameters:
      username - the username
      Returns:
      the account
    • getAccount

      public Account getAccount(String username, String password)
      Get account.
      Parameters:
      username - the username
      password - the password
      Returns:
      the account
    • insertAccount

      @Transactional public void insertAccount(Account account)
      Insert account.
      Parameters:
      account - the account
    • updateAccount

      @Transactional public void updateAccount(Account account)
      Update account.
      Parameters:
      account - the account