Replace @Column with @JoinColumn on relationship mappings
MSALIn 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. UseJoinColumnForMappingmod run . --recipe= org. openrewrite. java. migrate. javax. UseJoinColumnForMappingInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.