Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump spring.boot.version from 2.7.x to 3.1.5 (#565) improved #600

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
6500513
chore(deps): bump hazelcast from 5.2.3 to 5.3.0
dependabot[bot] Jun 5, 2023
cf31913
chore(deps): bump popper.js from 1.16.1-lts to 2.9.3
dependabot[bot] Jun 5, 2023
b5fe7f2
chore(deps-dev): bump mysql from 1.18.1 to 1.18.3
dependabot[bot] Jun 5, 2023
420d425
chore(deps): bump maven-bundle-plugin from 5.1.8 to 5.1.9
dependabot[bot] Jun 5, 2023
a786b28
chore(deps): bump maven-dependency-plugin from 3.5.0 to 3.6.0
dependabot[bot] Jun 5, 2023
d8c9000
chore(deps-dev): bump postgresql from 1.18.1 to 1.18.3
dependabot[bot] Jun 5, 2023
16c31dc
chore(deps): bump maven-project-info-reports-plugin from 3.4.3 to 3.4.4
dependabot[bot] Jun 5, 2023
0a31639
chore(deps): bump maven-gpg-plugin from 3.0.1 to 3.1.0
dependabot[bot] Jun 5, 2023
36e179a
chore(deps): bump spring-zeebe-starter from 8.2.0 to 8.2.2
dependabot[bot] Jun 5, 2023
90d020d
Merge pull request #10 from skayliu/dependabot/maven/io.camunda-sprin…
skayliu Jun 5, 2023
4e8165b
chore(deps): bump zeebe-bom from 8.2.4 to 8.2.5
dependabot[bot] Jun 5, 2023
4c41afa
Merge pull request #1 from skayliu/dependabot/maven/com.hazelcast-haz…
skayliu Jun 5, 2023
edd3eb5
Merge pull request #2 from skayliu/dependabot/maven/org.webjars-poppe…
skayliu Jun 5, 2023
34fbb26
Merge pull request #3 from skayliu/dependabot/maven/org.testcontainer…
skayliu Jun 5, 2023
ff5c160
Merge pull request #4 from skayliu/dependabot/maven/org.apache.felix-…
skayliu Jun 5, 2023
59649bd
Merge pull request #5 from skayliu/dependabot/maven/org.apache.maven.…
skayliu Jun 5, 2023
e01fa9c
Merge pull request #6 from skayliu/dependabot/maven/org.testcontainer…
skayliu Jun 5, 2023
a500120
Merge pull request #7 from skayliu/dependabot/maven/org.apache.maven.…
skayliu Jun 5, 2023
4627b68
Merge pull request #8 from skayliu/dependabot/maven/org.apache.maven.…
skayliu Jun 5, 2023
09a3423
Merge pull request #9 from skayliu/dependabot/maven/io.camunda-zeebe-…
skayliu Jun 5, 2023
60ed063
chore(deps): bump jib-maven-plugin from 3.3.1 to 3.3.2
dependabot[bot] Jun 5, 2023
d6d306f
chore(deps): bump bootstrap from 4.6.2 to 5.3.0
dependabot[bot] Jun 5, 2023
61f65c2
chore(deps): bump spring.boot.version from 2.7.5 to 3.1.0
dependabot[bot] Jun 5, 2023
56da7ea
chore(deps): bump maven-surefire-plugin from 3.0.0 to 3.1.0
dependabot[bot] Jun 5, 2023
0323913
Merge pull request #11 from skayliu/dependabot/maven/com.google.cloud…
skayliu Jun 6, 2023
3d15f33
Merge pull request #12 from skayliu/dependabot/maven/org.webjars-boot…
skayliu Jun 6, 2023
7047e9b
Merge pull request #14 from skayliu/dependabot/maven/org.apache.maven…
skayliu Jun 6, 2023
b5232ba
Merge pull request #13 from skayliu/dependabot/maven/spring.boot.vers…
skayliu Jun 6, 2023
cbc6a87
feat: set encoding to UTF-8
skayliu Jun 6, 2023
7ad8d39
chore(deps): bump hazelcast.exporter.version from 1.2.1 to 1.4.0
skayliu Jun 6, 2023
e48964c
Merge pull request #15 from skayliu/skayliu-hazelcast-exporter
skayliu Jun 6, 2023
dcc01f4
chore(deps): bump hazelcast from 5.2.3 to 5.3.0
dependabot[bot] Jun 6, 2023
fcec0b6
chore(deps): bump zeebe-bom from 8.2.5 to 8.2.6
dependabot[bot] Jun 7, 2023
daf505c
chore(deps): revert bootstrap from 5.3.0 to 4.6.2
skayliu Jun 8, 2023
45dee85
Merge pull request #23 from skayliu/chore(deps)-revert-bootstrap-from…
skayliu Jun 8, 2023
c1b7611
chore(deps): bump popper.js from 2.9.3 to1.16.1-lts
skayliu Jun 8, 2023
bdb4580
Merge pull request #24 from skayliu/chore(deps)-bump-popper.js-from-2…
skayliu Jun 8, 2023
01ddeb7
Bump spring.boot.version from 2.7.12 to 3.1.0
skayliu Jun 8, 2023
b34047c
Merge pull request #25 from skayliu/skayliu-spring-boot-3.1
skayliu Jun 8, 2023
5eb6a64
chore(deps): bump maven-surefire-plugin from 3.0.0 to 3.1.2
dependabot[bot] Jun 8, 2023
dc110f0
chore(deps): bump maven-project-info-reports-plugin from 3.4.4 to 3.4.5
dependabot[bot] Jun 8, 2023
543df85
Merge pull request #18 from skayliu/dependabot/maven/org.apache.maven…
skayliu Jun 8, 2023
73bd7b1
Merge pull request #22 from skayliu/dependabot/maven/org.apache.maven…
skayliu Jun 8, 2023
9919e47
Merge pull request #19 from skayliu/dependabot/maven/com.hazelcast-ha…
skayliu Jun 8, 2023
ab53488
Merge pull request #21 from skayliu/dependabot/maven/io.camunda-zeebe…
skayliu Jun 8, 2023
3dfa0bd
fix(test): Bpmn.readModelFromStream method to avoid test failed on Wi…
skayliu Jun 9, 2023
403c652
fix(test): disable test status_page_all_DTO_fields_in_template_can_be…
skayliu Jun 9, 2023
17da5a7
chore(deps): bump hazelcast from 5.3.0 to 5.3.1
dependabot[bot] Jun 9, 2023
81bf809
chore(deps): bump zeebe-bom from 8.2.6 to 8.2.7
dependabot[bot] Jun 13, 2023
e1a7035
fix: add length setting for lob annotation column
skayliu Jun 15, 2023
afe6055
fix: change deprecated MySQL8Dialect to MySQLDialect
skayliu Jun 15, 2023
10fafcf
feat: allow set the hazelcast clusterName
skayliu Jun 15, 2023
7d9ba2d
Merge pull request #28 from skayliu/dependabot/maven/com.hazelcast-ha…
skayliu Jun 15, 2023
d8bc961
Merge pull request #29 from skayliu/dependabot/maven/io.camunda-zeebe…
skayliu Jun 15, 2023
4d7d787
chore(deps): bump webjars-locator from 0.46 to 0.47
dependabot[bot] Jun 21, 2023
f58837b
chore(deps): bump spring.boot.version from 3.1.0 to 3.1.1
dependabot[bot] Jun 22, 2023
038f51b
Merge pull request #31 from skayliu/dependabot/maven/spring.boot.vers…
skayliu Jun 24, 2023
3352a6e
Merge pull request #30 from skayliu/dependabot/maven/org.webjars-webj…
skayliu Jun 24, 2023
6b6aebf
chore(deps): bump zeebe-bom from 8.2.7 to 8.2.8
dependabot[bot] Jul 3, 2023
fe278bd
chore(deps): bump h2 from 2.1.214 to 2.2.220
dependabot[bot] Jul 5, 2023
a418647
Merge pull request #32 from skayliu/dependabot/maven/io.camunda-zeebe…
skayliu Jul 19, 2023
b52c4f5
Merge pull request #33 from skayliu/dependabot/maven/com.h2database-h…
skayliu Jul 19, 2023
7fdfa63
chore(deps): bump spring-boot-starter-camunda from 8.2.2 to 8.2.3
dependabot[bot] Jul 19, 2023
cd7011d
Merge pull request #34 from skayliu/dependabot/maven/io.camunda.sprin…
skayliu Jul 19, 2023
5670521
Merge remote-tracking branch 'skayliu/main' into skayliu_pr_565_bump_…
nitram509 Nov 18, 2023
d8e6691
just use 32k as length limit, should be more than enough
nitram509 Nov 18, 2023
8718b74
re-order bullet items, improve readability
nitram509 Nov 18, 2023
a2fa5ae
just use 32k as length limit, should be more than enough
nitram509 Nov 18, 2023
731ff50
always print cluster name for verbosity
nitram509 Nov 18, 2023
8012adb
mock cluster status, to enable test again (missing status bean cased …
nitram509 Nov 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ docker pull ghcr.io/camunda-community-hub/zeebe-simple-monitor:2.4.1
```

* ensure that a Zeebe broker is running with a [Hazelcast exporter](https://github.com/camunda-community-hub/zeebe-hazelcast-exporter#install) (>= `1.0.0`)
* forward the Hazelcast port to the docker container (default: `5701`)
* configure the connection to the Zeebe broker by setting `zeebe.client.broker.gateway-address` (default: `localhost:26500`)
* configure the connection to Hazelcast by setting `zeebe.client.worker.hazelcast.connection` (default: `localhost:5701`)
* configure the connection to Hazelcast by setting `zeebe.client.worker.hazelcast.connection` (default: `localhost:5701`)
* forward the Hazelcast port to the docker container (default: `5701`)
* if you want to set the Hazelcast clusterName then you need to adjust the Zeebe broker and the Zeebe Simple Monitor alike
* Hint: this is useful, e.g. when you want to adjust the ringbuffer's size in the Hazelcast cluster (the name is relevant)
* a) in Zeebe broker, set the environment variable `ZEEBE_HAZELCAST_CLUSTER_NAME=dev` (default: `dev`)
* b) in Zeebe Simple Monitor, change the setting `zeebe.client.worker.hazelcast.clusterName` (default: `dev`)

If the Zeebe broker runs on your local machine with the default configs then start the container with the following command:

Expand Down Expand Up @@ -87,6 +91,7 @@ zeebe:
worker:
hazelcast:
connection: localhost:5701
clusterName: dev
connectionTimeout: PT30S

spring:
Expand Down Expand Up @@ -170,7 +175,7 @@ The configuration for using MySql is similar but with an additional setting for
- spring.datasource.username=root
- spring.datasource.password=zeebe
- spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
- spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
```

Expand Down
6 changes: 5 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ services:
image: ghcr.io/camunda-community-hub/zeebe-with-hazelcast-exporter:8.0.5
environment:
- ZEEBE_LOG_LEVEL=debug
- ZEEBE_HAZELCAST_CLUSTER_NAME=dev
ports:
- "26500:26500"
- "9600:9600"
Expand All @@ -23,6 +24,7 @@ services:
environment:
- zeebe.client.broker.gateway-address=zeebe:26500
- zeebe.client.worker.hazelcast.connection=zeebe:5701
- zeebe.client.worker.hazelcast.clusterName=dev
ports:
- "8082:8082"
depends_on:
Expand All @@ -38,6 +40,7 @@ services:
environment:
- zeebe.client.broker.gateway-address=zeebe:26500
- zeebe.client.worker.hazelcast.connection=zeebe:5701
- zeebe.client.worker.hazelcast.clusterName=dev
- spring.datasource.url=jdbc:postgresql://postgres-zeebe-simple-monitor:5432/postgres
- spring.datasource.username=postgres
- spring.datasource.password=zeebe
Expand Down Expand Up @@ -71,11 +74,12 @@ services:
environment:
- zeebe.client.broker.gateway-address=zeebe:26500
- zeebe.client.worker.hazelcast.connection=zeebe:5701
- zeebe.client.worker.hazelcast.clusterName=dev
- spring.datasource.url=jdbc:mysql://mysql-zeebe-simple-monitor:3306/simple_monitor?createDatabaseIfNotExist=true
- spring.datasource.username=root
- spring.datasource.password=zeebe
- spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
- spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
- spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
ports:
- "8082:8082"
Expand Down
24 changes: 16 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@
<version.zeebe.spring>8.3.1</version.zeebe.spring>
<hazelcast.exporter.version>1.4.0</hazelcast.exporter.version>

<spring.boot.version>2.7.5</spring.boot.version>
<querydsl.version>5.0.0</querydsl.version>

<spring.boot.version>3.1.5</spring.boot.version>
<!-- pin Hazelcast version because of spring-boot-dependencies -->
<version.hazelcast>5.3.6</version.hazelcast>

<!-- release parent settings -->
<version.java>17</version.java>
<java.version>${version.java}</java.version>

<jib-maven-plugin.image>eclipse-temurin:17-jre-forcal</jib-maven-plugin.image>

<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>

Expand Down Expand Up @@ -82,8 +86,8 @@

<!-- spring deps-->
<dependency>
<groupId>io.camunda</groupId>
<artifactId>spring-zeebe-starter</artifactId>
<groupId>io.camunda.spring</groupId>
<artifactId>spring-boot-starter-camunda</artifactId>
<version>${version.zeebe.spring}</version>
</dependency>

Expand Down Expand Up @@ -125,15 +129,16 @@
<dependency>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-apt</artifactId>
<version>5.0.0</version>
<classifier>jpa</classifier>
<version>${querydsl.version}</version>
<classifier>jakarta</classifier>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-jpa</artifactId>
<version>5.0.0</version>
<version>${querydsl.version}</version>
<classifier>jakarta</classifier>
</dependency>

<dependency>
Expand All @@ -155,8 +160,8 @@
</dependency>

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>

<!-- js libs -->
Expand Down Expand Up @@ -319,6 +324,9 @@
</execution>
</executions>
<configuration>
<from>
<image>${jib-maven-plugin.image}</image>
</from>
<to>
<image>ghcr.io/camunda-community-hub/zeebe-simple-monitor</image>
<tags>${project.version}</tags>
Expand Down
5 changes: 1 addition & 4 deletions src/main/java/io/zeebe/monitor/ZeebeSimpleMonitorApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package io.zeebe.monitor;

import com.samskivert.mustache.Mustache;
import io.camunda.zeebe.spring.client.EnableZeebeClient;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
Expand All @@ -39,10 +38,8 @@
import org.springframework.util.StringUtils;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@SpringBootApplication
@EnableZeebeClient
@EnableScheduling
@EnableAsync
@EnableSpringDataWebSupport
Expand Down Expand Up @@ -105,7 +102,7 @@ public Attributes loadAttributesFromManifest() {
@Bean
public WebMvcConfigurer corsConfigurer() {
final String urls = this.allowedOriginsUrls;
return new WebMvcConfigurerAdapter() {
return new WebMvcConfigurer() {
@Override
public void addCorsMappings(CorsRegistry registry) {
if (StringUtils.hasText(urls)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package io.zeebe.monitor.entity;

import javax.persistence.*;
import jakarta.persistence.*;

@Entity(name = "ELEMENT_INSTANCE")
@Table(indexes = {
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/io/zeebe/monitor/entity/ErrorEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
*/
package io.zeebe.monitor.entity;

import javax.persistence.*;
import jakarta.persistence.*;
import org.hibernate.Length;

@Entity(name = "ERROR")
@Table(indexes = {
Expand All @@ -35,11 +36,11 @@ public class ErrorEntity {
@Column(name = "PROCESS_INSTANCE_KEY_")
private long processInstanceKey;

@Column(name = "EXCEPTION_MESSAGE_")
@Column(name = "EXCEPTION_MESSAGE_",length= Length.LONG16)
@Lob
private String exceptionMessage;

@Column(name = "STACKTRACE_")
@Column(name = "STACKTRACE_",length= Length.LONG16)
@Lob
private String stacktrace;

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/zeebe/monitor/entity/HazelcastConfig.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.zeebe.monitor.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;

@Entity
public final class HazelcastConfig {
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/io/zeebe/monitor/entity/IncidentEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
*/
package io.zeebe.monitor.entity;

import javax.persistence.*;
import jakarta.persistence.*;
import org.hibernate.Length;

@Entity(name = "INCIDENT")
@Table(indexes = {
Expand Down Expand Up @@ -47,7 +48,7 @@ public class IncidentEntity {
@Column(name = "ERROR_TYPE_")
private String errorType;

@Column(name = "ERROR_MSG_")
@Column(name = "ERROR_MSG_",length= Length.LONG16)
@Lob
private String errorMessage;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/zeebe/monitor/entity/JobEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package io.zeebe.monitor.entity;

import javax.persistence.*;
import jakarta.persistence.*;

@Entity(name = "JOB")
@Table(indexes = {
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/io/zeebe/monitor/entity/MessageEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
*/
package io.zeebe.monitor.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Lob;
import org.hibernate.Length;

@Entity(name = "MESSAGE")
public class MessageEntity {
Expand All @@ -36,7 +37,7 @@ public class MessageEntity {
@Column(name = "MESSAGE_ID_")
private String messageId;

@Column(name = "PAYLOAD_")
@Column(name = "PAYLOAD_",length= Length.LONG32)
@Lob
private String payload;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package io.zeebe.monitor.entity;

import javax.persistence.*;
import jakarta.persistence.*;

@Entity(name = "MESSAGE_SUBSCRIPTION")
@Table(indexes = {
Expand Down
8 changes: 3 additions & 5 deletions src/main/java/io/zeebe/monitor/entity/ProcessEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
*/
package io.zeebe.monitor.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import jakarta.persistence.*;
import org.hibernate.Length;

@Entity(name = "PROCESS")
public class ProcessEntity {
Expand All @@ -33,7 +31,7 @@ public class ProcessEntity {
private int version;

@Lob
@Column(name = "RESOURCE_")
@Column(name = "RESOURCE_",length= Length.LONG32)
private String resource;

@Column(name = "TIMESTAMP_")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*/
package io.zeebe.monitor.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;

@Entity(name = "PROCESS_INSTANCE")
public class ProcessInstanceEntity {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/zeebe/monitor/entity/TimerEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package io.zeebe.monitor.entity;

import javax.persistence.*;
import jakarta.persistence.*;

@Entity(name = "TIMER")
@Table(indexes = {
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/io/zeebe/monitor/entity/VariableEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
*/
package io.zeebe.monitor.entity;

import javax.persistence.*;
import jakarta.persistence.*;
import org.hibernate.Length;

@Entity(name = "VARIABLE")
@Table(indexes = {
Expand All @@ -37,7 +38,7 @@ public class VariableEntity {
@Column(name = "NAME_")
private String name;

@Column(name = "VALUE_")
@Column(name = "VALUE_",length= Length.LONG32)
@Lob
private String value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
import io.zeebe.monitor.entity.ErrorEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface ErrorRepository extends PagingAndSortingRepository<ErrorEntity, Long> {
public interface ErrorRepository extends PagingAndSortingRepository<ErrorEntity, Long>, CrudRepository<ErrorEntity, Long> {

Page<ErrorEntity> findByProcessInstanceKey(long processInstanceKey, Pageable pageable);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@

import io.zeebe.monitor.entity.IncidentEntity;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface IncidentRepository extends PagingAndSortingRepository<IncidentEntity, Long>, QuerydslPredicateExecutor<IncidentEntity> {
public interface IncidentRepository extends PagingAndSortingRepository<IncidentEntity, Long>, QuerydslPredicateExecutor<IncidentEntity>, CrudRepository<IncidentEntity, Long> {

Iterable<IncidentEntity> findByProcessInstanceKey(long processInstanceKey);

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/io/zeebe/monitor/repository/JobRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
import java.util.Optional;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface JobRepository extends PagingAndSortingRepository<JobEntity, Long> {
public interface JobRepository extends PagingAndSortingRepository<JobEntity, Long>, CrudRepository<JobEntity, Long> {

Page<JobEntity> findByProcessInstanceKey(long processInstanceKey, Pageable pageable);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package io.zeebe.monitor.repository;

import io.zeebe.monitor.entity.MessageEntity;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface MessageRepository extends PagingAndSortingRepository<MessageEntity, Long> {}
public interface MessageRepository extends PagingAndSortingRepository<MessageEntity, Long>, CrudRepository<MessageEntity, Long> {}
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
import java.util.Optional;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface MessageSubscriptionRepository
extends PagingAndSortingRepository<MessageSubscriptionEntity, Long> {
extends PagingAndSortingRepository<MessageSubscriptionEntity, Long>, CrudRepository<MessageSubscriptionEntity, Long> {

Page<MessageSubscriptionEntity> findByProcessInstanceKey(
long processInstanceKey, Pageable pageable);
Expand Down
Loading
Loading