Migrate @JdbcType and legacy @Type to @JdbcTypeCode
ProprietaryIn Hibernate 7.0, various JDBC types were moved to internal packages. Use @JdbcTypeCode with SqlTypes constants instead of @JdbcType with specific classes. Also rewrites @Type(LegacyType.class) references to deprecated Hibernate basic types (e.g. MaterializedBlobType, ImageType) into the equivalent @JdbcTypeCode(SqlTypes.X).
io. moderne. hibernate. update70. MigrateJdbcTypeToJdbcTypeCodemod run . --recipe= io. moderne. hibernate. update70. MigrateJdbcTypeToJdbcTypeCodeInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.