com.eurodyn.qlack.fuse.aaa.mappers.SessionMapper Maven / Gradle / Ivy
package com.eurodyn.qlack.fuse.aaa.mappers;
import com.eurodyn.qlack.fuse.aaa.dto.SessionDTO;
import com.eurodyn.qlack.fuse.aaa.model.Session;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.springframework.data.domain.Page;
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE,
uses = SessionAttributeMapper.class)
public interface SessionMapper extends AAAMapper {
default Page fromSessions(Page sessions) {
return sessions.map(this::mapToDTO);
}
}