Closed zambrovski closed 11 months ago
My notes for process engine migration to Camunda 7.20 / Polyflow 4 etc. - some notes are specific to our setup (e.g. Azure SQL database), but maybe it helps:
useSpringBoot3
or useJakartaEe
to true
DATETIMEOFFSET
instead of DATETIME2
for Instant
s or set spring.jpa.properties.hibernate.type.preferred_instant_jdbc_type
to
TIMESTAMP
in your application.yaml
.UNIQUEIDENTIFIER
instead of BINARY
for UUID
s or set spring.jpa.properties.hibernate.type.preferred_uuid_jdbc_type
to BINARY
in your application.yaml
.hibernate_sequence
with per-table sequences (recommended) or set the JPA property
hibernate.id.db_structure_naming_strategy
to legacy
to restore the old behavior. An example database script for creating the sequences can be found is attached below
DECLARE @next_value BIGINT, @sql NVARCHAR(MAX);
SET @next_value = NEXT VALUE FOR hibernate_sequence;
SET @sql = 'CREATE SEQUENCE association_value_entry_seq START WITH ' + CAST(@next_value AS NVARCHAR) + ' INCREMENT BY 50'
EXEC (@sql)
SET @sql = 'CREATE SEQUENCE domain_event_entry_seq START WITH ' + CAST(@next_value AS NVARCHAR) + ' INCREMENT BY 50'
EXEC (@sql)
DROP SEQUENCE hibernate_sequence;
Switch examples to latest Camunda Spring Boo, JDK 17..
Steps
useSpringBoot3
)