public interface AccountMapper
Mapper interface for converting back and forth from the Account entity to its DTO's in addition to cascading updates from a DTO to the entity.
Since:
24.4.24
Version:
1.0
Author:
Lars N.
  • Field Details

    • INSTANCE

      static final AccountMapper INSTANCE
      Implementation instance of the mapper
  • Method Details

    • toEntity

      Account toEntity(AccountDTO account)
      Converts from dto to entity for account
      Parameters:
      account - Account dto
      Returns:
      Converted entity
    • toDTO

      AccountDTO toDTO(Account account)
      Converts to dto from entity for account
      Parameters:
      account - Account entity
      Returns:
      Converted dto
    • updateEntity

      Account updateEntity(Account account, AccountUpdateDTO accountDTO)
      Updates account entity using a dto. Ignores fields that are null
      Parameters:
      account - Account entity that is updated
      accountDTO - Account dto with the new changes
      Returns:
      Updated account entity