Migrate @JdbcType and legacy @Type to @JdbcTypeCode

Proprietary

In 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.MigrateJdbcTypeToJdbcTypeCode
mod run . --recipe=io.moderne.hibernate.update70.MigrateJdbcTypeToJdbcTypeCode

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.