I'm generating metadata classes at compile time with maven and the CanonicalModelProcessor. This works for all my classes (all are @entity annotated and configured in the persistence.xml).
For Practical reasons one of this classes inherits a framework base class. i cant annotate this class so i configured the mappedsuperclass in an orm.xml.
The CanonicalModelProcessor does not create a metadata class for the mappedsuperclass but it adds OAuth2ClientDetails_ extends BaseClientDetails_
to my subclass meta.
What can i do to fix this?
Here is my maven config:
<!-- Metamodel generation for JPA criteria api -->
<plugin>
<groupId>org.bsc.maven</groupId>
<artifactId>maven-processor-plugin</artifactId>
<version>1.3.5</version>
<executions>
<execution>
<id>process</id>
<goals>
<goal>process</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<outputDirectory>${project.build.directory}/generated-sources/metamodel</outputDirectory>
<compilerArguments>
-Aeclipselink.persistencexml=${project.basedir}/src/main/resources/META-INF/persistence.xml
</compilerArguments>
<processors>
<processor>org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor
</processor>
</processors>
</configuration>
</execution>
</executions>
</plugin>