Remove @Id from @Embeddable classes referenced by an @EmbeddedId
MSALAccording to the Java Persistence API (JPA) specification, if an entity defines an attribute with an @EmbeddedId annotation, the embeddable class cannot contain an attribute with an @Id annotation. If both the @EmbeddedId annotation and the @Id annotation are defined, OpenJPA ignores the @Id annotation, whereas EclipseLink throws an exception.
org. openrewrite. java. migrate. javax. RemoveEmbeddableIdmod run . --recipe= org. openrewrite. java. migrate. javax. RemoveEmbeddableIdInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.