Replace @Column with @JoinColumn on relationship mappings

MSAL

In OpenJPA, when a relationship attribute has either a @OneToOne or a @ManyToOne annotation with a @Column annotation, the @Column annotation is treated as a @JoinColumn annotation. EclipseLink throws an exception that indicates that the entity class must use @JoinColumn instead of @Column to map a relationship attribute.

org.openrewrite.java.migrate.javax.UseJoinColumnForMapping
mod run . --recipe=org.openrewrite.java.migrate.javax.UseJoinColumnForMapping

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