java.lang.Object
es.kukenan.smartfi.microservice.onboarding.service.mapper.UserEntityMapper

@Component public class UserEntityMapper extends Object
User entity mapper.
  • Field Details

    • addressRepository

      @Autowired private AddressRepository addressRepository
      Address entity repository.
    • jobRepository

      @Autowired private JobRepository jobRepository
      Job entity repository.
  • Constructor Details

    • UserEntityMapper

      public UserEntityMapper()
  • Method Details

    • toDto

      public List<es.kukenan.smartfi.dto.backoffice.UserDetailBackofficeDTO> toDto(List<User> users)
      Map the given list of Users to a list of UserDtos.
      Parameters:
      users - the list of User.
      Returns:
      the mapped list of UserDtos.
    • toDto

      public es.kukenan.smartfi.dto.backoffice.UserDetailBackofficeDTO toDto(User user, UserBackoffice userBackoffice)
      Map the given Users to a UserDtos.
      Parameters:
      user - the User.
      userBackoffice - userBackoffice entity to extract core_user_id.
      Returns:
      the mapped UserDtos.