package egovframework.dbnt.kcsc.standardCode.repository;


import egovframework.dbnt.kcsc.standardCode.entity.TnDocumentContent;
import egovframework.dbnt.kcsc.standardCode.service.StandardCodeContentInterface;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface TnDocumentContentRepository extends JpaRepository<TnDocumentContent, Integer> {

  @Query(value = "select * from get_recent_full_context_by_content(:docCode, :docPart)", nativeQuery = true)
  public List<StandardCodeContentInterface> getRecentFullContextByContent(String docCode, String docPart);

}
