@Repository public interface ActionRepository extends org.springframework.data.jpa.repository.JpaRepository<Action,Long>
| Modifier and Type | Method and Description |
|---|---|
List<Action> |
findByMatchingUrlAndContextRoot(String url,
String contextRoot) |
List<Action> |
findByMatchingUrlAndContextRootAndQueryParams(String url,
String contextRoot,
String queryParams) |
Action |
findByName(String name) |
Action |
findByUrlAndContextRootAndQueryParams(String url,
String contextRoot,
String queryParams) |
Action |
findByUrlAndContextRootAndQueryParamsIsNull(String url,
String contextRoot) |
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlushfindAllAction findByUrlAndContextRootAndQueryParamsIsNull(String url, String contextRoot)
@Query(value="select action from Action action where :url like url||\'%\' and contextRoot =:contextRoot and queryParams is null") List<Action> findByMatchingUrlAndContextRoot(@Param(value="url") String url, @Param(value="contextRoot") String contextRoot)
Action findByUrlAndContextRootAndQueryParams(String url, String contextRoot, String queryParams)
@Query(value="select action from Action action where :url||:queryParams like url||\'%\' and contextRoot =:contextRoot") List<Action> findByMatchingUrlAndContextRootAndQueryParams(@Param(value="url") String url, @Param(value="contextRoot") String contextRoot, @Param(value="queryParams") String queryParams)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.