Category: Spring JDBC

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

JPA – UntypeResult

This tutorial demonstrate using JPA2.0 with JQPL query with untype result and hibernate as vendor provider. This kind of query specifically […]

Read More

JPA Native SQL Query

This tutorial demonstrate using JPA2.0 with createNativeQuery and hibernate as vendor provider.

Read More

JPA NamedQuery

This tutorial demonstrate using JPA2.0 with NamedQuery and hibernate as vendor provider.

Read More