Add @Transient to unannotated collection attributes
MSALIn OpenJPA, attributes that inherit from the java.util.Collection<E> interface are not a default persistent type, so these attributes are not persisted unless they are annotated. EclipseLink has a different default behavior and attempts to persist these attributes to the database. To keep the OpenJPA behavior of ignoring unannotated collection attributes, add the javax.persistence.Transient annotation to these attributes in EclipseLink.
org. openrewrite. java. migrate. javax. AddTransientAnnotationToCollectionsmod run . --recipe= org. openrewrite. java. migrate. javax. AddTransientAnnotationToCollectionsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.