package com.reyun.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.reyun.model.Tip;
@Transactional
public interface TipRepository extends JpaRepository<Tip, Long> {

	@Query(value="select * from tip where menu=?1",nativeQuery=true)
	List<Tip> findAllByMenu(String menu);
	
}
