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

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface RoleRepository extends CrudRepository<Role, Long> {
	@Query(value="select r from Role r where r.roleName =:roleName")  
	public List<Role> findByroleName(@Param("roleName") String roleName);

}
