Class AbstractOpenJpaMappingToolMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    OpenJpaSchemaMojo, OpenJpaSqlMojo

    public abstract class AbstractOpenJpaMappingToolMojo
    extends AbstractOpenJpaMojo
    Processes Application model classes and generate the DDL by running the OpenJPA MappingTool. We have to split the generation of the SQL files and the mapping info into 2 separate mojos, since the MappingTool struggles to generate both in one step.
    Since:
    1.0
    Version:
    $Id$
    • Field Detail

      • action

        @Parameter
        protected java.lang.String action
        Argument to specify the action to take on each class. The available actions are: buildSchema, validate
      • OPTION_ACTION

        protected static final java.lang.String OPTION_ACTION
        used for passing the action parameter to the mapping tool
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractOpenJpaMappingToolMojo

        public AbstractOpenJpaMappingToolMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException,
                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
        See Also:
        Mojo.execute()