Code example for SchemaExport

Methods: create

0
		schemaExport = new SchemaExport(annotationConfiguration);
	} 
 
	@Before 
	public void export() { 
		schemaExport.create(true, true);
	} 
 
	public Session session() {
		return sessionFactory.getCurrentSession();
	} 
 
	public Connection connection() throws SQLException {
		return DriverManager.getConnection("jdbc:hsqldb:mem:db", "sa", "");
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java