package com.its.op.dao.repository.its.cctv;

import com.its.op.entity.its.cctv.TbCctvCptnStup;
import com.its.op.entity.its.cctv.TbCctvCptnStupKey;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TbCctvCptnStupRepository extends JpaRepository<TbCctvCptnStup, TbCctvCptnStupKey>, JpaSpecificationExecutor<TbCctvCptnStup> {

    @Query("select p from TbCctvCptnStup p")
    List<TbCctvCptnStup> findAll();

    @Query("select p from TbCctvCptnStup p")
    List<TbCctvCptnStup> findAllList();

}
