##### Coverage Report - com.ctrip.apollo.biz.repository.ReleaseRepository

Classes in this File | Line Coverage | Branch Coverage | Complexity
ReleaseRepository |
N/A | N/A
N/A | N/A
| 1.0;1

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