ca.gc.aafc.dina.mapper.DinaMappingLayer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dina-base-api Show documentation
Show all versions of dina-base-api Show documentation
Base DINA API package for Java built on SpringBoot and Crnk
package ca.gc.aafc.dina.mapper;
import ca.gc.aafc.dina.dto.ExternalRelationDto;
import ca.gc.aafc.dina.entity.DinaEntity;
import ca.gc.aafc.dina.service.DinaService;
import io.crnk.core.engine.internal.utils.PropertyUtils;
import io.crnk.core.queryspec.QuerySpec;
import lombok.AllArgsConstructor;
import lombok.NonNull;
import lombok.SneakyThrows;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import java.util.function.BiFunction;
import java.util.function.Predicate;
import java.util.stream.Collectors;
/**
* Mapping layer handles the responsibilities for dina repo mapping operations. Those
* responsibilities are the following.
*
*
* - Bean mapping from resource to entity and vise versa
* - Returning shallow ids when returning DTOs
* - Linking relations to database backed resources when returning entities
* - Mapping external relations for all mapping directions
*
*
*
* @param © 2015 - 2024 Weber Informatics LLC | Privacy Policy