I just migrated my application from spring 2 -> 3. I am getting an error about the MappedSuperclass
. After reading several articles I believe the issue is that jakarta has replaced javax, (related post). I tried to add javax.persistence and change the import path but it was not there.
[ERROR] error: cannot access MappedSuperclass
This is the only class with the Annotation in the application
@MappedSuperclass
public abstract class ConfigContainer extends AuditableEntityImplBase<Long> {}
<spring-boot.version>3.2.2</spring-boot.version>
<springfox-swagger.version>3.0.0</springfox-swagger.version>
<swagger.version>2.2.15</swagger.version>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>javax.persistence-api</artifactId>
<version>2.2</version>
</dependency>
Has anyone encountered this issue? This is the only error I am encountering and it is not very descriptive.