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
HibernateTypesContributor does not register Types on Hibernate 5 and 4 for Oracle, SQL Server, and PostgreSQL #441
Comments
And a question related to it. I tried to test class CustomPostgresDialect : PostgreSQL10Dialect() {
init {
this.registerHibernateType(2003, StringArrayType::class.java.name)
}
} to allow support for StringArrayType for projections. To be honest, I expected it from |
Thanks for the tip. The |
By the way, I noticed the same issue with |
Don't worry, I'll amend the commit for Oracle and/or SQL Server too |
…4 for Oracle, SQL Server, and PostgreSQL #441
When might it be expected for 2.16.3 to be released? I'm unable to use hibernate-types until it is due to this issue. |
I released the 2.16.3 version that features this fix. |
Hello @vladmihalcea, I am hitting a small issue with this fix: in my codebase, I am using version 2.16.2 and I never really realized that I have legacy code that is using I upgraded to 2.16.3 (because of the serialization issue from #438) and now, How would I go about disabling this only for that column? Thank you, I hope it's ok to ask this here :) |
First, Hibernate Types 2 is an ancient version. Thr project is called Hypersistence Utils and the latest version is 3.5.3. Second, I no longer have the time to offer free support for this library. I only offer support via consulting. |
@vladmihalcea ok, thank you in any case for this great library :) |
You're welcome. |
For anybody coming through here looking for the answer to my question, the solution was to force the type of the column to @Basic
@Type(type = "serializable")
private String[] column; |
Hibernate ORM core version: 5.6.8.Final
Hibernate Types 55 version: 2.16.2
During Spring Boot context creation
MetadataBuildingProcess
handles types provided viaTypeContributor
. Socom.vladmihalcea.hibernate.type.HibernateTypesContributor
also tries to contribute types. The problem is that it couldn't do it for Postgres because of the conditionPostgreSQLDialect
is deprecated andPostgreSQL82Dialect
should be used instead.The text was updated successfully, but these errors were encountered: