Interface DdlGenerator
-
public interface DdlGeneratorInterface for theDdlGeneratorwhich generates the SQL DDL files. TheGenerateDdlMojowill use theServiceLoaderfrom the Java Standard API to find the implementation to use. Therefore an implementation of this interface must be accompanied by a file calledde.jpdigital.maven.plugins.hibernate5ddl.DdlGeneratorin theMETA-INF/servicesdirectory.- Author:
- Jens Pelzetter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidgenerateDdl(Dialect dialect, Set<Package> packages, Set<Class<?>> entityClasses, GenerateDdlMojo mojo)Generates a SQL DDL file for a specific SQL dialect.voidgenerateDdl(String dialect, Set<Package> packages, Set<Class<?>> entityClasses, GenerateDdlMojo mojo)Generates a SQL DDL file for a specific SQL dialect.This method accepts a string a is called byGenerateDdlMojofor processing custom dialects.
-
-
-
Method Detail
-
generateDdl
void generateDdl(Dialect dialect, Set<Package> packages, Set<Class<?>> entityClasses, GenerateDdlMojo mojo) throws org.apache.maven.plugin.MojoFailureException
Generates a SQL DDL file for a specific SQL dialect.- Parameters:
dialect- The SQL dialect to use.packages- Package with package level Hibernate annotations.entityClasses- The entity classes for which SQL DDL statements will be created.mojo- TheGenerateDdlMojowhich calls the method.- Throws:
org.apache.maven.plugin.MojoFailureException- If an error occurs while creating the DDL file.- See Also:
Dialect
-
generateDdl
void generateDdl(String dialect, Set<Package> packages, Set<Class<?>> entityClasses, GenerateDdlMojo mojo) throws org.apache.maven.plugin.MojoFailureException
Generates a SQL DDL file for a specific SQL dialect.This method accepts a string a is called byGenerateDdlMojofor processing custom dialects.- Parameters:
dialect- The SQL dialect to use.packages- Package with package level Hibernate annotations.entityClasses- The entity classes for which SQL DDL statements will be created.mojo- TheGenerateDdlMojowhich calls the method.- Throws:
org.apache.maven.plugin.MojoFailureException- If an error occurs while creating the DDL file.
-
-