mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-01 12:21:10 +00:00
migrated from SimpleJdbcTemplate to JdbcTemplate
This commit is contained in:
parent
4e35adb6b0
commit
608c42f74b
15 changed files with 108 additions and 207 deletions
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -19,6 +19,10 @@
|
|||
<level value="DEBUG" />
|
||||
</logger>
|
||||
|
||||
<logger name="org.springframework.jdbc">
|
||||
<level value="DEBUG" />
|
||||
</logger>
|
||||
|
||||
|
||||
|
||||
<!-- Root Logger -->
|
||||
|
|
|
|||
|
|
@ -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"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue