2009-11-25 18:45:52 +00:00
|
|
|
# Properties file with JDBC and JPA settings.
|
|
|
|
#
|
|
|
|
# Applied by <context:property-placeholder location="jdbc.properties"/> from
|
|
|
|
# various application context XML files (e.g., "applicationContext-*.xml").
|
|
|
|
# Targeted at system administrators, to avoid touching the context XML files.
|
|
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# Common Settings
|
|
|
|
|
|
|
|
hibernate.generate_statistics=true
|
|
|
|
hibernate.show_sql=true
|
|
|
|
jpa.showSql=true
|
|
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# HSQL Settings
|
|
|
|
|
|
|
|
jdbc.driverClassName=org.hsqldb.jdbcDriver
|
|
|
|
jdbc.url=jdbc:hsqldb:mem:petclinic
|
|
|
|
jdbc.username=sa
|
|
|
|
jdbc.password=
|
|
|
|
|
|
|
|
# Properties that control the population of schema and data for a new data source
|
2009-11-26 20:04:27 +00:00
|
|
|
jdbc.initLocation=classpath:db/hsqldb/initDB.txt
|
2009-11-26 16:46:54 +00:00
|
|
|
jdbc.dataLocation=classpath:db/hsqldb/populateDB.txt
|
2009-11-25 18:45:52 +00:00
|
|
|
|
|
|
|
# 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.toplink.EssentialsHSQLPlatformWithNativeSequence
|
|
|
|
|
|
|
|
# Property that determines which database to use with an AbstractJpaVendorAdapter
|
|
|
|
jpa.database=HSQL
|
|
|
|
|
|
|
|
|
|
|
|
#-------------------------------------------------------------------------------
|
|
|
|
# MySQL Settings
|
|
|
|
|
|
|
|
#jdbc.driverClassName=com.mysql.jdbc.Driver
|
|
|
|
#jdbc.url=jdbc:mysql://localhost:3306/petclinic
|
2009-11-26 20:04:27 +00:00
|
|
|
#jdbc.username=root
|
|
|
|
#jdbc.password=
|
2009-11-25 18:45:52 +00:00
|
|
|
|
|
|
|
# Properties that control the population of schema and data for a new data source
|
2009-11-26 16:46:54 +00:00
|
|
|
#jdbc.schemaLocation=classpath:db/mysql/initDB.txt
|
|
|
|
#jdbc.dataLocation=classpath:db/mysql/populateDB.txt
|
2009-11-25 18:45:52 +00:00
|
|
|
|
|
|
|
# Property that determines which Hibernate dialect to use
|
|
|
|
# (only applied with "applicationContext-hibernate.xml")
|
|
|
|
#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
|
|
|
|
#jpa.database=MYSQL
|