mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-01 20:21:11 +00:00
moved the ClinicRepository into some separate repos
There is still some polish up to be done.
This commit is contained in:
parent
16b1476c40
commit
c9c8c4e085
47 changed files with 1666 additions and 728 deletions
|
|
@ -96,10 +96,16 @@
|
|||
<!-- Transaction manager for a single JDBC DataSource (alternative to JTA) -->
|
||||
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"
|
||||
p:dataSource-ref="dataSource"/>
|
||||
|
||||
|
||||
<!-- PetClinic's central data access object using Spring's SimpleJdbcTemplate -->
|
||||
<bean id="clinic" class="org.springframework.samples.petclinic.jdbc.JdbcClinicImpl"/>
|
||||
|
||||
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
|
||||
<constructor-arg ref="dataSource" />
|
||||
</bean>
|
||||
|
||||
<bean id="namedParameterJdbcTemplate" class="org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate">
|
||||
<constructor-arg ref="dataSource" />
|
||||
</bean>
|
||||
|
||||
<context:component-scan base-package="org.springframework.samples.petclinic.repository.jdbc"/>
|
||||
|
||||
</beans>
|
||||
|
||||
|
|
@ -109,12 +115,12 @@
|
|||
EntityManager will be auto-injected due to @PersistenceContext.
|
||||
PersistenceExceptions will be auto-translated due to @Repository.
|
||||
-->
|
||||
<bean id="clinic" class="org.springframework.samples.petclinic.jpa.JpaClinicImpl"/>
|
||||
<context:component-scan base-package="org.springframework.samples.petclinic.repository.jpa"/>
|
||||
|
||||
</beans>
|
||||
|
||||
<beans profile="spring-data-jpa">
|
||||
<jpa:repositories base-package="org.springframework.samples.petclinic.jpa"/>
|
||||
<jpa:repositories base-package="org.springframework.samples.petclinic.repository.jpa"/>
|
||||
|
||||
</beans>
|
||||
</beans>
|
||||
Loading…
Add table
Add a link
Reference in a new issue