package vn.azteam.tpf.repository;

import vn.azteam.tpf.domain.TBProductBlockDetails;

import java.util.List;
import java.util.Optional;

import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;


/**
 * Spring Data  repository for the TBProductBlockDetails entity.
 */
@SuppressWarnings("unused")
@Repository
public interface TBProductBlockDetailsRepository extends JpaRepository<TBProductBlockDetails, Long>, JpaSpecificationExecutor<TBProductBlockDetails> {
    Optional<TBProductBlockDetails> getByCode(String code);
    boolean existsByCode(String code);
    List<TBProductBlockDetails> findByTbCropId(Long id);
}
