package cn.edu.tju.se.base.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import cn.edu.tju.se.base.domain.Dict;

public interface DictRepository extends JpaRepository<Dict,Long>{

	public List<Dict> findByType(String type);
	
	public List<Dict> findByParentId(Long parentId);

	public List<Dict> findByTypeAndNumber(String type, Long number);

	public List<Dict> findByName(String name);
}
