com.xlrit.gears.base.repository.Repository Maven / Gradle / Ivy
package com.xlrit.gears.base.repository;
import java.util.Collection;
import java.util.List;
import com.xlrit.gears.base.execution.Execution;
public interface Repository {
String LOADGRAPH = "jakarta.persistence.loadgraph";
Class getEntityType();
T findById(String id);
List findAll();
T create(Execution execution);
List createCollection(Execution execution, List> linkedElements);
void remove(T instance, Execution execution);
void removeAll(Collection instances, Execution execution);
void publish(T instance, Execution execution);
}