##### Coverage Report - com.ctrip.framework.apollo.biz.repository.AppRepository

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

1 |  |
     package com.ctrip.framework.apollo.biz.repository;
2 |  |
3 |  |
     import java.util.List;
4 |  |
5 |  |
     import org.springframework.data.jpa.repository.Query;
6 |  |
     import org.springframework.data.repository.PagingAndSortingRepository;
7 |  |
     import org.springframework.data.repository.query.Param;
8 |  |
9 |  |
     import com.ctrip.framework.apollo.common.entity.App;
10 |  |
11 |  |
     public interface AppRepository extends PagingAndSortingRepository<App, Long> {
12 |  |
13 |  |
       @Query("SELECT a from App a WHERE a.name LIKE %:name%")
14 |  |
       List<App> findByName(@Param("name") String name);
15 |  |
16 |  |
       App findByAppId(String appId);
17 |  |
18 |  |
     }