Example usage for org.hibernate.engine.jdbc.internal FormatStyle DDL

List of usage examples for org.hibernate.engine.jdbc.internal FormatStyle DDL

Introduction

In this page you can find the example usage for org.hibernate.engine.jdbc.internal FormatStyle DDL.

Prototype

FormatStyle DDL

To view the source code for org.hibernate.engine.jdbc.internal FormatStyle DDL.

Click Source Link

Document

Formatting for DDL (CREATE, ALTER, DROP, etc) statements

Usage

From source file:com.ttech.cordovabuild.infrastructure.DDLExport.java

License:Apache License

@Test
public void exportDDL() {

    Formatter formatter = FormatStyle.DDL.getFormatter();

    Ejb3Configuration jpaConfiguration = new Ejb3Configuration().configure("cordova", null);
    Configuration hibernateConfiguration = jpaConfiguration.getHibernateConfiguration();
    SchemaExport export = new SchemaExport(hibernateConfiguration);
    export.setOutputFile("my-schema.sql");
    export.setDelimiter(";");
    export.execute(true, false, false, true);
}