| 1 | |
package com.ctrip.framework.apollo.biz.repository; |
| 2 | |
|
| 3 | |
import java.util.List; |
| 4 | |
|
| 5 | |
import org.springframework.data.domain.Pageable; |
| 6 | |
import org.springframework.data.repository.PagingAndSortingRepository; |
| 7 | |
import org.springframework.data.repository.query.Param; |
| 8 | |
|
| 9 | |
import com.ctrip.framework.apollo.biz.entity.Release; |
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
public interface ReleaseRepository extends PagingAndSortingRepository<Release, Long> { |
| 15 | |
|
| 16 | |
Release findFirstByAppIdAndClusterNameAndNamespaceNameOrderByIdDesc(@Param("appId") String appId, @Param("clusterName") String clusterName, |
| 17 | |
@Param("namespaceName") String namespaceName); |
| 18 | |
|
| 19 | |
List<Release> findByAppIdAndClusterNameAndNamespaceNameOrderByIdDesc(String appId, String clusterName, String namespaceName, Pageable page); |
| 20 | |
} |