Changeset f29cd58 for src/main/java/edu/gjoko/schedlr/repositories
- Timestamp:
- 01/15/24 00:11:01 (10 months ago)
- Branches:
- master
- Children:
- 943857c
- Parents:
- e8999eb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/repositories/ServiceRepository.java
re8999eb rf29cd58 11 11 @Repository 12 12 public interface ServiceRepository extends JpaRepository<Service, Long> { 13 14 @Query(value = "select s from Service as s " + 15 " where (s.serviceType.name like CONCAT('%', :keyword, '%') " + 16 " or s.description like CONCAT('%', :keyword, '%'))" + 17 " and s.serviceStatus = 'ACTIVE'") 18 List<Service> getServicesByKeyword(String keyword); 13 19 }
Note:
See TracChangeset
for help on using the changeset viewer.