DKLInfoRepository.java
535 Bytes
package com.bsth.repository;
import com.bsth.entity.DKLInfo;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
@Repository
public interface DKLInfoRepository extends BaseRepository<DKLInfo, Integer> {
@Transactional
@Modifying
@Query(value = "UPDATE DKLInfo t set t.status=?2 WHERE t.id = ?1")
public void update(Integer id, String t);
}