Migrate from OpenJPA to EclipseLink JPA
MSALThese recipes help migrate Java Persistence applications using OpenJPA to EclipseLink JPA.
org. openrewrite. java. migrate. javax. openJPAToEclipseLinkmod run . --recipe= org. openrewrite. java. migrate. javax. openJPAToEclipseLinkInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Set
@Column(name = "element")on@ElementCollectionattributes - Add a default constructor to
@Entityand@MappedSuperclassclasses - Add a
@TableGeneratorto automatically generated@GeneratedValueattributes - Add
@Transientto unannotated collection attributes - Add
@Transientto unannotated entity attributes - Add
@Transientto private accessor methods - Remove
@Idfrom@Embeddableclasses referenced by an@EmbeddedId - Remove the
@Temporalannotation for somejava.sqlattributes - Replace
@Columnwith@JoinColumnon relationship mappings