-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(camunda 7.20): WIP camunda 7.20, spring boot 3, java 17
- Loading branch information
1 parent
c9161f2
commit 7957ebc
Showing
10 changed files
with
86 additions
and
68 deletions.
There are no files selected for viewing
14 changes: 10 additions & 4 deletions
14
.../backend/src/main/kotlin/io/holunda/polyflow/example/infrastructure/jpa/FixedH2Dialect.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,13 +1,19 @@ | ||
package io.holunda.polyflow.example.infrastructure.jpa | ||
|
||
import org.hibernate.boot.model.TypeContributions | ||
import org.hibernate.dialect.H2Dialect | ||
import org.hibernate.service.ServiceRegistry | ||
import org.hibernate.type.descriptor.sql.internal.DdlTypeImpl | ||
import java.sql.Types | ||
|
||
class FixedH2Dialect : H2Dialect() { | ||
init { | ||
// registerColumnType(Types.VARBINARY, "bytea") | ||
registerColumnType(Types.BLOB, "bytea") | ||
// registerColumnType(Types.LONGVARBINARY, "bytea"); | ||
|
||
override fun registerColumnTypes(typeContributions: TypeContributions, serviceRegistry: ServiceRegistry) { | ||
super.registerColumnTypes(typeContributions, serviceRegistry) | ||
val ddlTypeRegistry = typeContributions.typeConfiguration.ddlTypeRegistry | ||
ddlTypeRegistry.addDescriptor(DdlTypeImpl(Types.BLOB, "bytea", this)) | ||
ddlTypeRegistry.addDescriptor(DdlTypeImpl(Types.CLOB, "bytea", this)) | ||
ddlTypeRegistry.addDescriptor(DdlTypeImpl(Types.NCLOB, "bytea", this)) | ||
} | ||
|
||
} |
18 changes: 9 additions & 9 deletions
18
...c/main/kotlin/io/holunda/polyflow/example/infrastructure/jpa/NoToastPostgresSQLDialect.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,18 +1,18 @@ | ||
package io.holunda.polyflow.example.infrastructure.jpa | ||
|
||
import org.hibernate.boot.model.TypeContributions | ||
import org.hibernate.dialect.PostgreSQLDialect | ||
import org.hibernate.type.descriptor.sql.BinaryTypeDescriptor | ||
import org.hibernate.type.descriptor.sql.SqlTypeDescriptor | ||
import org.hibernate.service.ServiceRegistry | ||
import org.hibernate.type.descriptor.sql.internal.DdlTypeImpl | ||
import java.sql.Types | ||
|
||
class NoToastPostgresSQLDialect : PostgreSQLDialect() { | ||
init { | ||
this.registerColumnType(Types.BLOB, "BYTEA") | ||
} | ||
|
||
override fun remapSqlTypeDescriptor(sqlTypeDescriptor: SqlTypeDescriptor): SqlTypeDescriptor { | ||
return if (sqlTypeDescriptor.sqlType == Types.BLOB) { | ||
BinaryTypeDescriptor.INSTANCE | ||
} else super.remapSqlTypeDescriptor(sqlTypeDescriptor) | ||
override fun registerColumnTypes(typeContributions: TypeContributions, serviceRegistry: ServiceRegistry) { | ||
super.registerColumnTypes(typeContributions, serviceRegistry) | ||
val ddlTypeRegistry = typeContributions.typeConfiguration.ddlTypeRegistry | ||
ddlTypeRegistry.addDescriptor(DdlTypeImpl(Types.BLOB, "bytea", this)) | ||
ddlTypeRegistry.addDescriptor(DdlTypeImpl(Types.CLOB, "bytea", this)) | ||
ddlTypeRegistry.addDescriptor(DdlTypeImpl(Types.NCLOB, "bytea", this)) | ||
} | ||
} |
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
4 changes: 2 additions & 2 deletions
4
...ain/kotlin/io/holunda/polyflow/example/process/approval/process/RequestApprovalProcess.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
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
8 changes: 4 additions & 4 deletions
8
...kotlin/io/holunda/polyflow/example/process/approval/service/impl/datajpa/RequestEntity.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
9 changes: 8 additions & 1 deletion
9
...holunda/polyflow/example/process/approval/service/impl/datajpa/RequestEntityRepository.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,9 +1,16 @@ | ||
package io.holunda.polyflow.example.process.approval.service.impl.datajpa | ||
|
||
import org.springframework.data.repository.PagingAndSortingRepository | ||
import java.util.* | ||
|
||
/** | ||
* Spring Data JPA repository. | ||
*/ | ||
interface RequestEntityRepository : PagingAndSortingRepository<RequestEntity, String> | ||
interface RequestEntityRepository : PagingAndSortingRepository<RequestEntity, String> { | ||
|
||
fun save(requestEntity: RequestEntity): RequestEntity | ||
fun findAll(): List<RequestEntity> | ||
fun findById(id: String): Optional<RequestEntity> | ||
fun existsById(id: String): Boolean | ||
} | ||
|
22 changes: 11 additions & 11 deletions
22
...y/src/main/kotlin/io/holunda/polyflow/example/infrastructure/NoToastPostgresSQLDialect.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,18 +1,18 @@ | ||
package io.holunda.polyflow.example.infrastructure | ||
|
||
import org.hibernate.dialect.PostgreSQL94Dialect | ||
import org.hibernate.type.descriptor.sql.BinaryTypeDescriptor | ||
import org.hibernate.type.descriptor.sql.SqlTypeDescriptor | ||
import org.hibernate.boot.model.TypeContributions | ||
import org.hibernate.dialect.PostgreSQLDialect | ||
import org.hibernate.service.ServiceRegistry | ||
import org.hibernate.type.descriptor.sql.internal.DdlTypeImpl | ||
import java.sql.Types | ||
|
||
class NoToastPostgresSQLDialect : PostgreSQL94Dialect() { | ||
init { | ||
this.registerColumnType(Types.BLOB, "BYTEA") | ||
} | ||
class NoToastPostgresSQLDialect : PostgreSQLDialect() { | ||
|
||
override fun remapSqlTypeDescriptor(sqlTypeDescriptor: SqlTypeDescriptor): SqlTypeDescriptor { | ||
return if (sqlTypeDescriptor.sqlType == Types.BLOB) { | ||
BinaryTypeDescriptor.INSTANCE | ||
} else super.remapSqlTypeDescriptor(sqlTypeDescriptor) | ||
override fun registerColumnTypes(typeContributions: TypeContributions, serviceRegistry: ServiceRegistry) { | ||
super.registerColumnTypes(typeContributions, serviceRegistry) | ||
val ddlTypeRegistry = typeContributions.typeConfiguration.ddlTypeRegistry | ||
ddlTypeRegistry.addDescriptor(DdlTypeImpl(Types.BLOB, "bytea", this)) | ||
ddlTypeRegistry.addDescriptor(DdlTypeImpl(Types.CLOB, "bytea", this)) | ||
ddlTypeRegistry.addDescriptor(DdlTypeImpl(Types.NCLOB, "bytea", this)) | ||
} | ||
} |
22 changes: 11 additions & 11 deletions
22
...in/kotlin/io/holunda/polyflow/example/process/infrastructure/NoToastPostgresSQLDialect.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,18 +1,18 @@ | ||
package io.holunda.polyflow.example.process.infrastructure | ||
|
||
import org.hibernate.dialect.PostgreSQL94Dialect | ||
import org.hibernate.type.descriptor.sql.BinaryTypeDescriptor | ||
import org.hibernate.type.descriptor.sql.SqlTypeDescriptor | ||
import org.hibernate.boot.model.TypeContributions | ||
import org.hibernate.dialect.PostgreSQLDialect | ||
import org.hibernate.service.ServiceRegistry | ||
import org.hibernate.type.descriptor.sql.internal.DdlTypeImpl | ||
import java.sql.Types | ||
|
||
class NoToastPostgresSQLDialect : PostgreSQL94Dialect() { | ||
init { | ||
this.registerColumnType(Types.BLOB, "BYTEA") | ||
} | ||
class NoToastPostgresSQLDialect : PostgreSQLDialect() { | ||
|
||
override fun remapSqlTypeDescriptor(sqlTypeDescriptor: SqlTypeDescriptor): SqlTypeDescriptor { | ||
return if (sqlTypeDescriptor.sqlType == Types.BLOB) { | ||
BinaryTypeDescriptor.INSTANCE | ||
} else super.remapSqlTypeDescriptor(sqlTypeDescriptor) | ||
override fun registerColumnTypes(typeContributions: TypeContributions, serviceRegistry: ServiceRegistry) { | ||
super.registerColumnTypes(typeContributions, serviceRegistry) | ||
val ddlTypeRegistry = typeContributions.typeConfiguration.ddlTypeRegistry | ||
ddlTypeRegistry.addDescriptor(DdlTypeImpl(Types.BLOB, "bytea", this)) | ||
ddlTypeRegistry.addDescriptor(DdlTypeImpl(Types.CLOB, "bytea", this)) | ||
ddlTypeRegistry.addDescriptor(DdlTypeImpl(Types.NCLOB, "bytea", this)) | ||
} | ||
} |