Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
broken-petclinic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Smart
broken-petclinic
Commits
4e91b446
Commit
4e91b446
authored
12 years ago
by
Mic
Browse files
Options
Downloads
Patches
Plain Diff
removed TopLink-specific and Hibernate-specific properties
parent
23314c54
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/resources/spring/dao-config.xml
+2
-2
2 additions, 2 deletions
src/main/resources/spring/dao-config.xml
src/main/resources/spring/jdbc.properties
+1
-16
1 addition, 16 deletions
src/main/resources/spring/jdbc.properties
with
3 additions
and
18 deletions
src/main/resources/spring/dao-config.xml
+
2
−
2
View file @
4e91b446
...
...
@@ -44,12 +44,12 @@
p:dataSource-ref=
"dataSource"
>
<property
name=
"jpaVendorAdapter"
>
<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
name=
"persistenceUnitName"
value=
"petclinic"
/>
<property
name=
"packagesToScan"
value=
"org/springframework/samples/petclinic"
/>
</bean>
<!-- Transaction manager for a single JPA EntityManagerFactory (alternative to JTA) -->
<bean
id=
"transactionManager"
class=
"org.springframework.orm.jpa.JpaTransactionManager"
p:entityManagerFactory-ref=
"entityManagerFactory"
/>
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/spring/jdbc.properties
+
1
−
16
View file @
4e91b446
...
...
@@ -5,12 +5,6 @@
# 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.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
jpa.database
=
HSQL
jpa.showSql
=
true
#-------------------------------------------------------------------------------
# MySQL Settings
...
...
@@ -52,8 +40,5 @@ jpa.database=HSQL
# (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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment