package com.its.api.bis.repository;

import com.its.api.bis.model.entity.Bit;
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 BitRepository extends JpaRepository<Bit, String>, JpaSpecificationExecutor<Bit> {

    @Query("select p from Bit p where p.useflag = '1'")
    List<Bit> findAllList();
}
