package com.bcxin.Infrastructures;

import com.bcxin.Infrastructures.entities.EntityAbstract;
import com.bcxin.Infrastructures.entities.IAggregate;

import java.util.Collection;
import java.util.List;
import java.util.Optional;

public interface EntityRepository<S extends EntityAbstract & IAggregate,ID> {
    S save(S entity);

    Optional<S> findById(ID id);

    void delete(S entity);

    void flush();

    //S getById(ID id);
}
