Skip to content

Conversation

@cigaly
Copy link
Contributor

@cigaly cigaly commented Dec 4, 2024

Jira issue HHH-18869

JSON is an alias for LONGTEXT (see JSON Data Type in MariaDB Knowledge Base)

Simple fix is to override org.hibernate.dialect.Dialect#equivalentTypes for MariaDBDialect to return true when comparing those two types.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Dec 4, 2024

Thanks for your pull request!

This pull request appears to follow the contribution rules.

› This message was automatically generated.

@cigaly cigaly marked this pull request as ready for review December 4, 2024 10:43
@cigaly cigaly changed the title HHH-18869 HHH-18869 Schema validation fails with MariaDB when entity field is of type BigDecimal[] Dec 4, 2024
@beikov beikov merged commit c21568f into hibernate:main Dec 9, 2024
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants