All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ueboot.shiro.repository.role.RoleRepository Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
/*
* Copyright (c)  2018
* All rights reserved.
* 2018-08-21 09:40:34
*/
package com.ueboot.shiro.repository.role;

import com.ueboot.shiro.entity.Role;
import com.ueboot.core.repository.BaseRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Repository;

/**
* 这个类里面使用spring data jpa 方式实现数据库的CRUD
* Created on 2018-08-21 09:40:34
* @author yangkui
* @since 2.1.0 by ueboot-generator
*/
@Repository
public interface RoleRepository extends BaseRepository,RoleBaseRepository {
    /**
     * 根据角色名称查找角色,名称在DB当中唯一
     * @param name 角色名称
     * @return 角色对象
     */
    Role findByName(String name);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy