Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Metadata Class not generated by CanonicalModelProcessor (a orm.xml configured class does not get a metadata class generated)
Metadata Class not generated by CanonicalModelProcessor [message #915432] Mon, 17 September 2012 05:01 Go to previous message
Alexander Bätz is currently offline Alexander Bätz
Messages: 5
Registered: August 2012
Junior Member
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>
 
Read Message
Read Message
Previous Topic:Problem filtering with NOT IN clause
Next Topic:JTA/XA
Goto Forum:
  


Current Time: Thu May 23 22:33:47 EDT 2013

Powered by FUDForum. Page generated in 0.01620 seconds