Month: February 2015

Querying with JdbcTemplate

This tutorial is about the JdbcTemplate querying type. Generally, there are 3 types of query, which is SimpleTypes, Generic Maps and Domain Objects.

Read More

Spring embeded database

Example 1, using H2 <jdbc:embeded-database id=”datasource” type=”H2″> <jdbc:script location=”classpath:jdbc/schema.sql”/> <jdbc:script location=”classpath:jdbc/test-data.sql”/> </jdbc:embeded> Example 2, <bean id=”dataSource” class=”org.springframework.jdbc.datasource.embeddedDatabaseFactoryBean”> <property name=”databasePopulator” ref=”populator”/> […]

Read More