Class UserEntityMapper
java.lang.Object
es.kukenan.smartfi.microservice.onboarding.service.mapper.UserEntityMapper
User entity mapper.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AddressRepositoryAddress entity repository.private JobRepositoryJob entity repository. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
addressRepository
Address entity repository. -
jobRepository
Job entity repository.
-
-
Constructor Details
-
UserEntityMapper
public UserEntityMapper()
-
-
Method Details
-
toDto
Map the given list ofUsers to a list ofUserDtos.- Parameters:
users- the list ofUser.- Returns:
- the mapped list of
UserDtos.
-
toDto
public es.kukenan.smartfi.dto.backoffice.UserDetailBackofficeDTO toDto(User user, UserBackoffice userBackoffice) Map the givenUsers to aUserDtos.- Parameters:
user- theUser.userBackoffice- userBackoffice entity to extract core_user_id.- Returns:
- the mapped
UserDtos.
-