-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: query messages by state (#247)
* fix: change entity id type from long to string * feat: query messages by state
- Loading branch information
Showing
7 changed files
with
36 additions
and
15 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
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
5 changes: 5 additions & 0 deletions
5
data/src/main/kotlin/io/zeebe/zeeqs/data/repository/MessageRepository.kt
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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
package io.zeebe.zeeqs.data.repository | ||
|
||
import io.zeebe.zeeqs.data.entity.Message | ||
import io.zeebe.zeeqs.data.entity.MessageState | ||
import org.springframework.data.domain.Pageable | ||
import org.springframework.data.repository.PagingAndSortingRepository | ||
import org.springframework.stereotype.Repository | ||
|
||
@Repository | ||
interface MessageRepository : PagingAndSortingRepository<Message, Long> { | ||
|
||
fun findByStateIn(stateIn: List<MessageState>, pageable: Pageable): List<Message> | ||
|
||
fun countByStateIn(stateIn: List<MessageState>): Long | ||
|
||
} |
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
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