ReportDataMapperImpl.java
package com.blanksystem.blankdomain.service.external.report.mapper;
import com.blanksystem.blank.service.domain.entity.Blank;
import com.blanksystem.blankdomain.service.external.report.dto.User;
import javax.annotation.processing.Generated;
import org.springframework.stereotype.Component;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2024-11-04T20:44:06+0000",
comments = "version: 1.6.2, compiler: javac, environment: Java 21.0.5 (Azul Systems, Inc.)"
)
@Component
public class ReportDataMapperImpl implements ReportDataMapper {
@Override
public User blankToUser(Blank blank) {
if ( blank == null ) {
return null;
}
User.UserBuilder user = User.builder();
user.userId( blank.getId().getValue().toString() );
return user.build();
}
}