package com.iqser.red.service.persistence.management.v1.processor.service.persistence.repository.annotationentity;

import com.iqser.red.service.persistence.management.v1.processor.entity.annotations.AnnotationEntityId;

public interface AnnotationEntityRepository {

    /**
     * Deletes the entity ba the given id, silently ignoring non-existing entities. <br/>
     * <br/>
     * <p>
     * This explicit method is needed because although org.springframework.data.repository.CrudRepository states that it
     * ignores non-existing entities, org.springframework.data.jpa.repository.support.SimpleJpaRepository (the current
     * implementation) throws an Exception in that case.
     * </p>
     *
     * @param id id of the entity to delete.
     */
    void deleteByIdIs(AnnotationEntityId id);

}
