From b7764e39b2754810e8ff1c0d2a947dccea44e40c Mon Sep 17 00:00:00 2001
From: Mic <misvy@vmware.com>
Date: Fri, 27 Sep 2013 09:33:09 +0800
Subject: [PATCH] Added comments to explain how database dialect is configured
 #33

---
 src/main/resources/spring/business-config.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/main/resources/spring/business-config.xml b/src/main/resources/spring/business-config.xml
index 7117ca2..5e9dc68 100644
--- a/src/main/resources/spring/business-config.xml
+++ b/src/main/resources/spring/business-config.xml
@@ -39,6 +39,11 @@
             <property name="jpaVendorAdapter">
                 <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"
                       p:database="${jpa.database}" p:showSql="${jpa.showSql}"/>
+                <!-- the 'database' parameter refers to the database dialect being used.
+                	By default, Hibernate will use a 'HSQL' dialect because 'jpa.database' has been set to 'HSQL'
+                	inside file spring/data-access.properties
+                
+                 -->
             </property>
             <!-- gDickens: BOTH Persistence Unit and Packages to Scan are NOT compatible, persistenceUnit will win -->
             <property name="persistenceUnitName" value="petclinic"/>
-- 
GitLab