-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13524f8
commit 1145c98
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...com/sunbird/serve/need/SearchAndDiscoveryService/repositories/EntitySearchRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.sunbird.serve.need; | ||
|
||
import com.sunbird.serve.need.models.Need.Need; | ||
import com.sunbird.serve.need.models.Need.Entity; | ||
import com.sunbird.serve.need.models.enums.EntityStatus; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.UUID; | ||
import java.util.List; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import java.util.Optional; | ||
|
||
@Repository | ||
public interface EntitySearchRepository extends JpaRepository<Entity, UUID> { | ||
|
||
Page<Entity> findAllByStatus(EntityStatus status, Pageable pageable); | ||
} |
1 change: 1 addition & 0 deletions
1
...om/sunbird/serve/need/SearchAndDiscoveryService/repositories/NeedDiscoveryRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters