I had the same issue as you, and was stuck on it full day, really frustrating. But now I have fixed it. My fixes are:
- Match the versions. I was using Hibernate 5.1 and vladmihalcea hibernate-types-55
hypersistence-utils-hibernate-55
. However, according to the README in the repo (https://github.com/vladmihalcea/hibernate-types)README in the repo, I should use comio.vladmihalceahypersistence: hibernatehypersistence-typesutils-hibernate-5: 2.203.0.1 with Hibernate 5.1. However, in your case, I would try to unify the Hibernate versions first, and then choose the matching version for hibernatehypersistence-typesutils. - Use the correct annotation. In my Entity, I was annotating the field
@Type(type = "jsonb")
. After changing it to@Type(type = "json")
. It started to work.
Hopefully, this can help you.