| 1 | |
package com.ctrip.apollo.biz.repository; |
| 2 | |
|
| 3 | |
import org.springframework.data.repository.PagingAndSortingRepository; |
| 4 | |
|
| 5 | |
import com.ctrip.apollo.biz.entity.Privilege; |
| 6 | |
|
| 7 | |
import java.util.List; |
| 8 | |
|
| 9 | |
public interface PrivilegeRepository extends PagingAndSortingRepository<Privilege, Long> { |
| 10 | |
|
| 11 | |
List<Privilege> findByNamespaceId(long namespaceId); |
| 12 | |
|
| 13 | |
List<Privilege> findByNamespaceIdAndPrivilType(long namespaceId, String privilType); |
| 14 | |
|
| 15 | |
Privilege findByNamespaceIdAndNameAndPrivilType(long namespaceId, String name, String privilType); |
| 16 | |
} |