Hi
You can use the following code to create the tables.
Configuration configuration = new Configuration().configure();
Connection connection = getJDBCConnection(database);
SchemaExport export = new SchemaExport(configuration,connection);
export.setOutputFile("my-schema.sql");
export.setDelimiter(";");
export.execute(true, true, false, true);
For this you need to create a JDBC connection to that perticular database and pass that connection as an argument of the schema export constructor.
Hi
You can use the following code to create the tables.
Configuration configuration = new Configuration().configure();
Connection connection = getJDBCConnection(database);
SchemaExport export = new SchemaExport(configuration,connection);
export.setOutputFile("my-schema.sql");
export.setDelimiter(";");
export.execute(true, true, false, true);
For this you need to create a JDBC connection to that perticular database and pass that connection as an argument of the schema export constructor.