diff --git a/components/approval/backend/src/main/kotlin/io/holunda/polyflow/example/process/approval/service/impl/datajpa/RequestEntityRepository.kt b/components/approval/backend/src/main/kotlin/io/holunda/polyflow/example/process/approval/service/impl/datajpa/RequestEntityRepository.kt index f544091e..6b487748 100644 --- a/components/approval/backend/src/main/kotlin/io/holunda/polyflow/example/process/approval/service/impl/datajpa/RequestEntityRepository.kt +++ b/components/approval/backend/src/main/kotlin/io/holunda/polyflow/example/process/approval/service/impl/datajpa/RequestEntityRepository.kt @@ -1,16 +1,10 @@ package io.holunda.polyflow.example.process.approval.service.impl.datajpa +import org.springframework.data.repository.CrudRepository import org.springframework.data.repository.PagingAndSortingRepository import java.util.* /** * Spring Data JPA repository. */ -interface RequestEntityRepository : PagingAndSortingRepository { - - fun save(requestEntity: RequestEntity): RequestEntity - fun findAll(): List - fun findById(id: String): Optional - fun existsById(id: String): Boolean -} - +interface RequestEntityRepository : PagingAndSortingRepository, CrudRepository diff --git a/components/infrastructure/src/main/kotlin/io/holunda/polyflow/example/infrastructure/FixedH2Dialect.kt b/components/infrastructure/src/main/kotlin/io/holunda/polyflow/example/infrastructure/FixedH2Dialect.kt index 0bb72af7..dbe43207 100644 --- a/components/infrastructure/src/main/kotlin/io/holunda/polyflow/example/infrastructure/FixedH2Dialect.kt +++ b/components/infrastructure/src/main/kotlin/io/holunda/polyflow/example/infrastructure/FixedH2Dialect.kt @@ -7,6 +7,7 @@ import org.hibernate.service.ServiceRegistry import org.hibernate.type.descriptor.sql.internal.DdlTypeImpl import java.sql.Types +@Suppress("unused") // used in application.yaml class FixedH2Dialect(info: DialectResolutionInfo) : H2Dialect(info) { override fun registerColumnTypes(typeContributions: TypeContributions, serviceRegistry: ServiceRegistry) { diff --git a/components/infrastructure/src/main/kotlin/io/holunda/polyflow/example/infrastructure/NoToastPostgresSQLDialect.kt b/components/infrastructure/src/main/kotlin/io/holunda/polyflow/example/infrastructure/NoToastPostgresSQLDialect.kt index c657922b..dcbea791 100644 --- a/components/infrastructure/src/main/kotlin/io/holunda/polyflow/example/infrastructure/NoToastPostgresSQLDialect.kt +++ b/components/infrastructure/src/main/kotlin/io/holunda/polyflow/example/infrastructure/NoToastPostgresSQLDialect.kt @@ -9,6 +9,7 @@ import org.hibernate.type.descriptor.jdbc.BinaryJdbcType import org.hibernate.type.descriptor.sql.internal.DdlTypeImpl import java.sql.Types +@Suppress("unused") // used in application.yaml class NoToastPostgresSQLDialect(info: DialectResolutionInfo) : PostgreSQLDialect(info) { override fun registerColumnTypes(typeContributions: TypeContributions, serviceRegistry: ServiceRegistry) { diff --git a/components/tasklist-backend/src/main/kotlin/io/holunda/polyflow/example/tasklist/adapter/rest/impl/BusinessDataEntriesResource.kt b/components/tasklist-backend/src/main/kotlin/io/holunda/polyflow/example/tasklist/adapter/rest/impl/BusinessDataEntriesResource.kt index c4450442..9c53fa48 100644 --- a/components/tasklist-backend/src/main/kotlin/io/holunda/polyflow/example/tasklist/adapter/rest/impl/BusinessDataEntriesResource.kt +++ b/components/tasklist-backend/src/main/kotlin/io/holunda/polyflow/example/tasklist/adapter/rest/impl/BusinessDataEntriesResource.kt @@ -40,7 +40,7 @@ class BusinessDataEntriesResource( user = user, page = page, size = size, - sort = sort ?: "", + sort = sort?.let { sortParameter -> listOf(sortParameter) } ?: listOf(), filters ?: listOf() ) ) diff --git a/components/tasklist-backend/src/main/kotlin/io/holunda/polyflow/example/tasklist/adapter/rest/impl/TaskServiceGateway.kt b/components/tasklist-backend/src/main/kotlin/io/holunda/polyflow/example/tasklist/adapter/rest/impl/TaskServiceGateway.kt index d6f7722a..755aaae3 100644 --- a/components/tasklist-backend/src/main/kotlin/io/holunda/polyflow/example/tasklist/adapter/rest/impl/TaskServiceGateway.kt +++ b/components/tasklist-backend/src/main/kotlin/io/holunda/polyflow/example/tasklist/adapter/rest/impl/TaskServiceGateway.kt @@ -49,9 +49,10 @@ class TaskServiceGateway( .query( TasksWithDataEntriesForUserQuery( user = user, + assignedToMeOnly = false, page = page, size = size, - sort = sort ?: "", + sort = sort?.let { sortParam -> listOf(sortParam) } ?: listOf(), filters = filters ) ).join() ?: throw ElementNotFoundException() diff --git a/pom.xml b/pom.xml index 32afbaa0..9475b4c7 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ 1.9.10 ${java.version} true - 3.0.4 + 3.0.5 true @@ -49,10 +49,10 @@ 1.22.0 1.4.0 1.7.0 - 1.5.2.Final + 1.5.5.Final 5.1.0 0.2.6 - 5.9.2 + 5.10.0 @@ -259,8 +259,8 @@ ${kotlin.version} ${java.version} - 1.6 - 1.6 + 1.9 + 1.9 spring jpa diff --git a/scenarios/distributed-axon-server-local-polyflow/process-application-local-polyflow/src/main/resources/db/migrations/V0_0_13__axon_sequences_per_table.sql b/scenarios/distributed-axon-server-local-polyflow/process-application-local-polyflow/src/main/resources/db/migrations/V0_0_13__axon_sequences_per_table.sql new file mode 100644 index 00000000..ad82813b --- /dev/null +++ b/scenarios/distributed-axon-server-local-polyflow/process-application-local-polyflow/src/main/resources/db/migrations/V0_0_13__axon_sequences_per_table.sql @@ -0,0 +1,5 @@ +DROP SEQUENCE hibernate_sequence; + +CREATE SEQUENCE association_value_entry_seq START WITH 1 INCREMENT BY 50; + +CREATE SEQUENCE domain_event_entry_seq START WITH 1 INCREMENT BY 50; diff --git a/scenarios/distributed-axon-server-local-polyflow/process-platform-view-only/src/main/resources/db/migrations/V0_0_5__axon_sequences_per_table.sql b/scenarios/distributed-axon-server-local-polyflow/process-platform-view-only/src/main/resources/db/migrations/V0_0_5__axon_sequences_per_table.sql new file mode 100644 index 00000000..ad82813b --- /dev/null +++ b/scenarios/distributed-axon-server-local-polyflow/process-platform-view-only/src/main/resources/db/migrations/V0_0_5__axon_sequences_per_table.sql @@ -0,0 +1,5 @@ +DROP SEQUENCE hibernate_sequence; + +CREATE SEQUENCE association_value_entry_seq START WITH 1 INCREMENT BY 50; + +CREATE SEQUENCE domain_event_entry_seq START WITH 1 INCREMENT BY 50; diff --git a/scenarios/single-node-jpa-maria/src/main/resources/db/migrations/mariadb/V0_0_7__axon_sequences_per_table.sql b/scenarios/single-node-jpa-maria/src/main/resources/db/migrations/mariadb/V0_0_7__axon_sequences_per_table.sql new file mode 100644 index 00000000..ad82813b --- /dev/null +++ b/scenarios/single-node-jpa-maria/src/main/resources/db/migrations/mariadb/V0_0_7__axon_sequences_per_table.sql @@ -0,0 +1,5 @@ +DROP SEQUENCE hibernate_sequence; + +CREATE SEQUENCE association_value_entry_seq START WITH 1 INCREMENT BY 50; + +CREATE SEQUENCE domain_event_entry_seq START WITH 1 INCREMENT BY 50; diff --git a/scenarios/single-node-jpa-maria/src/test/resources/db/migrations/h2/V0_0_7__axon_sequences_per_table.sql b/scenarios/single-node-jpa-maria/src/test/resources/db/migrations/h2/V0_0_7__axon_sequences_per_table.sql new file mode 100644 index 00000000..ad82813b --- /dev/null +++ b/scenarios/single-node-jpa-maria/src/test/resources/db/migrations/h2/V0_0_7__axon_sequences_per_table.sql @@ -0,0 +1,5 @@ +DROP SEQUENCE hibernate_sequence; + +CREATE SEQUENCE association_value_entry_seq START WITH 1 INCREMENT BY 50; + +CREATE SEQUENCE domain_event_entry_seq START WITH 1 INCREMENT BY 50;