A simple example using SimpleJdbcTemplate
.
The Spring JDBC Template just needs a DataSource
. The jdbc:embedded-database element
automatically initializes an HSQL DB DataSource
with the schema.sql script.
<jdbc:embedded-database id="dataSource" type="HSQL"> <jdbc:script location="classpath:/schema.sql" /> </jdbc:embedded-database>