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

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

import com.iqser.red.service.persistence.management.v1.processor.entity.configuration.DigitalSignatureEntity;

public interface DigitalSignatureRepository extends JpaRepository<DigitalSignatureEntity, String> {

    @Modifying
    @Query("update DigitalSignatureEntity e set e.reason = :reason, e.location = :location, e.contactInfo = :contactInfo, e.certificateName= :certificateName " + "where e.id = :id")
    int updateDigitalSignature(String id, String reason, String location, String contactInfo, String certificateName);

}
