Spaces:
Configuration error
Configuration error
File size: 573 Bytes
b58280e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
package com.example.app.mappers;
import org.springframework.stereotype.Component;
import com.example.app.dtos.UserAccountDto;
import com.example.app.entities.UserAccount;
@Component
public class UserAccountMapper implements Mapper<UserAccount, UserAccountDto> {
@Override
public UserAccount fromDto(UserAccountDto dto) {
throw new UnsupportedOperationException("Unimplemented method 'fromDto'");
}
@Override
public UserAccountDto toDto(UserAccount entity) {
return UserAccountDto.builder().email(entity.getEmail()).build();
}
}
|