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.Menu;
@Transactional
public interface MenuRepository extends JpaRepository<Menu, Long> {
	
	@Query(value="select * from menu",nativeQuery=true)
	List<Menu> listAllMenu();
	
	@Query(value="select * from menu where id in ?1",nativeQuery=true)
	List<Menu> listMenuByIds(List<String> idList);

	
}
