What should I replace the hibernate deprecated @TypeDef and @Type annotations by?

Solution 1:

It seems there is no replacement until Hibernate 6. Type and also TypeDef was marked as deprecated to mark it as removed in version 6, but so far not replacement exists. The ideology here is that deprecated does not indicate that already a new version exists, which might be not an intuitive meaning for most developers.

This was reverted now in the current 5.6.3-Final version series.

Solution 2:

This deprecation has been reverted in Hibernate 5.6.3-Final