public interface DdlGenerator
DdlGenerator
which generates the SQL DDL files.
The GenerateDdlMojo
will use the ServiceLoader
from the Java
Standard API to find the implementation to use. Therefore an implementation
of this interface must be accompanied by a file called
de.jpdigital.maven.plugins.hibernate5ddl.DdlGenerator
in the
META-INF/services
directory.Modifier and Type | Method and Description |
---|---|
void |
generateDdl(Dialect dialect,
Set<Class<?>> entityClasses,
GenerateDdlMojo mojo)
Generates a SQL DDL file for a specific SQL dialect.
|
void |
generateDdl(String dialect,
Set<Class<?>> entityClasses,
GenerateDdlMojo mojo)
Generates a SQL DDL file for a specific SQL dialect.
|
void generateDdl(Dialect dialect, Set<Class<?>> entityClasses, GenerateDdlMojo mojo) throws org.apache.maven.plugin.MojoFailureException
dialect
- The SQL dialect to use.entityClasses
- The entity classes for which SQL DDL statements will
be created.mojo
- The GenerateDdlMojo
which calls the method.org.apache.maven.plugin.MojoFailureException
- If an error occurs while creating the DDL
file.Dialect
void generateDdl(String dialect, Set<Class<?>> entityClasses, GenerateDdlMojo mojo) throws org.apache.maven.plugin.MojoFailureException
GenerateDdlMojo
for processing custom
dialects.dialect
- The SQL dialect to use.entityClasses
- The entity classes for which SQL DDL statements will
be created.mojo
- The GenerateDdlMojo
which calls the method.org.apache.maven.plugin.MojoFailureException
- If an error occurs while creating the DDL
file.Copyright © 2016–2019 Jens Pelzetter. All rights reserved.