Home > Software engineering >  Why is there no CUBRID dialect in Hibernate 6.x versions?
Why is there no CUBRID dialect in Hibernate 6.x versions?

Time:11-29

Hibernate version 5.6 has a CUBRID dialect. Why is there no CUBRID dialect in Hibernate 6.0 and later versions?

I want to modify CUBRID Dialect, but can't I reflect it in the latest version?

I checked the JIRA issues, but I couldn't get the information.

CodePudding user response:

The CUBRID dialect still exists, but you need to add the org.hibernate.orm:hibernate-community-dialects dependency, and use the dialect name org.hibernate.community.dialect.CUBRIDDialect. You can find the sources in the hibernate-community-dialects module on GitHub.

The Hibernate project decided to only support a small number of dialects in hibernate-core, and move the rest to hibernate-community-dialects, with the expectation that they are either improved by the community and/or database vendor, or split off (forked) to their own dependency.

See also Community dialects:

As of Hibernate 6.0, the Hibernate team decided to provide a clear way forward for community contributed dialects. The hibernate-core artifact had many legacy dialects before 6.0 that were only tested and maintained on a best effort basis.

[..]

Issues with dialects in the hibernate-community-dialects are usually not considered by the Hibernate team, as the community is responsible for providing fixes and improving the dialects for newer database versions or ORM capabilities.

And the Artifact for community-dialects GitHub discussion and JIRA issue HHH-14693.

  • Related