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

MariaDB Error in Hibernate DDL validation #916

Open
MichaelVonB opened this issue Nov 27, 2023 · 0 comments
Open

MariaDB Error in Hibernate DDL validation #916

MichaelVonB opened this issue Nov 27, 2023 · 0 comments
Labels
Type: bug Something isn't working

Comments

@MichaelVonB
Copy link
Contributor

Steps to reproduce

  • camunda-bpm-taskpool version: 4.1.0
  • Camunda BPM version: 7.20
  • JDK version: 17
  • Operating system: tested with linux/windows, should be independent of plattform
  • Steps: Use Hibernate to generate DDL with MariaDB Dialect. TaskEntity payload will be generated as tinytext (255 bytes). This does not fit with the purpose of payload.
    With Spring Boot 3 comes a new Version of Hibernate (5 -> 6) the old 5.x version was generating longtext ~4gb for payload.
    For our local profile we use spring.jpa.hibernate.ddl-auto: validate, our application failed to start due to SchemaManagementException
    Schema-validation: wrong column type encountered in column [payload] in table [plf_data_entry]; found [longtext (Types#LONGVARCHAR)], but expecting [tinytext (Types#CLOB)]

Expected behaviour

DDL-Validation should work with polyflow for any database type.

Actual behaviour

Expected database type does not match with the actual database type.

Possible Workarounds

Dont use ddl-validation, i.e. spring.jpa.hibernate.ddl-auto: none

@zambrovski zambrovski added the Type: bug Something isn't working label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants