package com.yn.bftl.thirdparty.common.repository;

import com.yn.bftl.common.common.entity.Sequence;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface SequenceRepository extends JpaRepository<Sequence, Long> {

	@Query("From Sequence self where self.code = ?1")
    Sequence findByCode(String code);

	@Query("From Sequence self where self.name = ?1")
    Sequence findByName(String name);

}

