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

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import com.iqser.red.service.persistence.management.v1.processor.entity.permissions.CustomPermissionEntity;

public interface CustomPermissionRepository extends JpaRepository<CustomPermissionEntity, Long> {

    List<CustomPermissionEntity> findByTargetObject(String targetObject);


    @Modifying(flushAutomatically = true, clearAutomatically = true)
    void deleteByTargetObject(String targetObject);

}
