Add a default constructor to @Entity and @MappedSuperclass classes

MSAL

When a Java Persistence API (JPA) entity class has a constructor with arguments, the class must also have a default, no-argument constructor. The OpenJPA implementation automatically generates the no-argument constructor, but the EclipseLink implementation does not.

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

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