Code example for SchemaExport

Methods: executesetDelimiter

0
    configuration.setProperty("connection.url", jdbcUrl);
    configuration.setProperty("connection.username", username);
    configuration.setProperty("connection.password", password);
    configuration.setProperty("dialect", dialect.getDialectClass());
    configuration.setProperty("connection.driver_class", dialect.getDriverClass());
    SchemaExport export = new SchemaExport(configuration);
    export.setDelimiter(";");
    export.execute(false, true, false, !updateSchema);
  } 
 
  /** 
   * Holds the classnames of hibernate dialects for easy reference. 
   */ 
  public static enum Dialect { 
    ORACLE("org.hibernate.dialect.Oracle10gDialect", "oracle.jdbc.driver.OracleDriver"),
    MYSQL("org.hibernate.dialect.MySQLDialect", "com.mysql.jdbc.Driver"),
    HSQL("org.hibernate.dialect.HSQLDialect", "org.hsqldb.jdbcDriver");
 
    private String dialectClass;
    private String driverClass;
Connect your IDE to all the code out there  Get Codota for Java