migrated from SimpleJdbcTemplate to JdbcTemplate

This commit is contained in:
Mic 2013-01-14 22:13:04 +08:00
parent 4e35adb6b0
commit 608c42f74b
15 changed files with 108 additions and 207 deletions

View file

@ -1,3 +1,12 @@
drop table vet_specialties if exists;
drop table vets if exists;
drop table specialties if exists;
drop table visits if exists;
drop table pets if exists;
drop table types if exists;
drop table owners if exists;
CREATE TABLE vets (
id INTEGER IDENTITY PRIMARY KEY,
first_name VARCHAR(30),

View file

@ -19,6 +19,10 @@
<level value="DEBUG" />
</logger>
<logger name="org.springframework.jdbc">
<level value="DEBUG" />
</logger>
<!-- Root Logger -->

View file

@ -56,7 +56,7 @@
<context:mbean-export/>
<!-- PetClinic's central data access object using Spring's SimpleJdbcTemplate -->
<bean id="clinic" class="org.springframework.samples.petclinic.jdbc.SimpleJdbcClinic"/>
<bean id="clinic" class="org.springframework.samples.petclinic.jdbc.JdbcClinic"/>
<!-- Call monitoring aspect that monitors call count and call invocation time -->
<bean id="callMonitor" class="org.springframework.samples.petclinic.aspects.CallMonitoringAspect"/>