List of usage examples for org.hibernate.tool.hbm2ddl MultipleLinesSqlCommandExtractor MultipleLinesSqlCommandExtractor
MultipleLinesSqlCommandExtractor
From source file:org.ualerts.testing.jpa.HibernatePersistentDataResource.java
License:Apache License
private String[] loadSQLStatements(URL resource) throws IOException { InputStream inputStream = resource.openStream(); try {//from ww w . ja v a 2s . co m Reader reader = new InputStreamReader(inputStream); MultipleLinesSqlCommandExtractor extractor = new MultipleLinesSqlCommandExtractor(); return extractor.extractCommands(reader); } finally { inputStream.close(); } }