mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-05-29 22:39:38 +00:00
removed TopLink-specific and Hibernate-specific properties
This commit is contained in:
parent
23314c5428
commit
4e91b4468e
2 changed files with 3 additions and 18 deletions
|
@ -44,12 +44,12 @@
|
||||||
p:dataSource-ref="dataSource">
|
p:dataSource-ref="dataSource">
|
||||||
<property name="jpaVendorAdapter">
|
<property name="jpaVendorAdapter">
|
||||||
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"
|
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"
|
||||||
p:database="${jpa.database}" p:showSql="${jpa.showSql}"/>
|
p:database="${jpa.database}" p:showSql="${jpa.showSql}" />
|
||||||
</property>
|
</property>
|
||||||
<property name="persistenceUnitName" value="petclinic" />
|
<property name="persistenceUnitName" value="petclinic" />
|
||||||
<property name="packagesToScan" value="org/springframework/samples/petclinic" />
|
<property name="packagesToScan" value="org/springframework/samples/petclinic" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- Transaction manager for a single JPA EntityManagerFactory (alternative to JTA) -->
|
<!-- Transaction manager for a single JPA EntityManagerFactory (alternative to JTA) -->
|
||||||
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"
|
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"
|
||||||
p:entityManagerFactory-ref="entityManagerFactory"/>
|
p:entityManagerFactory-ref="entityManagerFactory"/>
|
||||||
|
|
|
@ -5,12 +5,6 @@
|
||||||
# Targeted at system administrators, to avoid touching the context XML files.
|
# Targeted at system administrators, to avoid touching the context XML files.
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
|
||||||
# Common Settings
|
|
||||||
|
|
||||||
hibernate.generate_statistics=true
|
|
||||||
hibernate.show_sql=true
|
|
||||||
jpa.showSql=true
|
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
|
@ -25,16 +19,10 @@ jdbc.password=
|
||||||
jdbc.initLocation=classpath:db/hsqldb/initDB.sql
|
jdbc.initLocation=classpath:db/hsqldb/initDB.sql
|
||||||
jdbc.dataLocation=classpath:db/hsqldb/populateDB.sql
|
jdbc.dataLocation=classpath:db/hsqldb/populateDB.sql
|
||||||
|
|
||||||
# Property that determines which Hibernate dialect to use
|
|
||||||
# (only applied with "applicationContext-hibernate.xml")
|
|
||||||
hibernate.dialect=org.hibernate.dialect.HSQLDialect
|
|
||||||
|
|
||||||
# Property that determines which JPA DatabasePlatform to use with TopLink Essentials
|
|
||||||
jpa.databasePlatform=org.springframework.samples.petclinic.model.toplink.EssentialsHSQLPlatformWithNativeSequence
|
|
||||||
|
|
||||||
# Property that determines which database to use with an AbstractJpaVendorAdapter
|
# Property that determines which database to use with an AbstractJpaVendorAdapter
|
||||||
jpa.database=HSQL
|
jpa.database=HSQL
|
||||||
|
|
||||||
|
jpa.showSql=true
|
||||||
|
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
# MySQL Settings
|
# MySQL Settings
|
||||||
|
@ -52,8 +40,5 @@ jpa.database=HSQL
|
||||||
# (only applied with "applicationContext-hibernate.xml")
|
# (only applied with "applicationContext-hibernate.xml")
|
||||||
#hibernate.dialect=org.hibernate.dialect.MySQLDialect
|
#hibernate.dialect=org.hibernate.dialect.MySQLDialect
|
||||||
|
|
||||||
# Property that determines which JPA DatabasePlatform to use with TopLink Essentials
|
|
||||||
#jpa.databasePlatform=oracle.toplink.essentials.platform.database.MySQL4Platform
|
|
||||||
|
|
||||||
# Property that determines which database to use with an AbstractJpaVendorAdapter
|
# Property that determines which database to use with an AbstractJpaVendorAdapter
|
||||||
#jpa.database=MYSQL
|
#jpa.database=MYSQL
|
||||||
|
|
Loading…
Reference in a new issue