com.alon.spring.crud.api.projection.Projector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of crud-api-base Show documentation
Show all versions of crud-api-base Show documentation
Fornece implementação básica e expansível para criação API's CRUD com Spring Boot e Spring Data JPA.
package com.alon.spring.crud.api.projection;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import com.alon.spring.crud.domain.service.exception.ProjectionException;
/**
*
* @param Input data to be projected
* @param Ouput projection
*/
public interface Projector {
public O project(I input) throws ProjectionException;
default Set requiredExpand() {
return Collections.emptySet();
}
}