package cn.com.capcloud.core.system.role;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;


public interface RolePageSortRepository extends PagingAndSortingRepository<Role, Long> {
	@Query(value="select r from Role r where r.roleName like:roleName")  
	public Page<Role> findByroleName(@Param("roleName") String roleName, Pageable pageable);
}
