package vn.azteam.tpf.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import vn.azteam.tpf.domain.TBCodeDetails;

import java.util.Optional;

@Repository
public interface TBCodeDetailsRepository extends JpaRepository<TBCodeDetails, Long>, JpaSpecificationExecutor<TBCodeDetails> {

    //    @Query("select tb_code_details from TBCodeDetails tb_code_details where tb_code_details.code =:code")
    Optional<TBCodeDetails> findByCode(String code);

}
