Advertisement
Guest User

mysql.patch

a guest
Dec 4th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 4.26 KB | None | 0 0
  1. diff --git a/core/pom.xml b/core/pom.xml
  2. index 34c283f..2e7a645 100644
  3. --- a/core/pom.xml
  4. +++ b/core/pom.xml
  5. @@ -145,9 +145,6 @@
  6.      <profiles>
  7.          <profile>
  8.              <id>hsqldb</id>
  9. -            <activation>
  10. -                <activeByDefault>true</activeByDefault>
  11. -            </activation>
  12.              <dependencies>
  13.                  <dependency>
  14.                      <groupId>com.broadleafcommerce</groupId>
  15. @@ -157,6 +154,9 @@
  16.          </profile>
  17.          <profile>
  18.              <id>mysql</id>
  19. +            <activation>
  20. +                <activeByDefault>true</activeByDefault>
  21. +            </activation>
  22.              <dependencies>
  23.                  <dependency>
  24.                      <groupId>com.broadleafcommerce</groupId>
  25. diff --git a/core/src/main/resources/runtime-properties/common-shared.properties b/core/src/main/resources/runtime-properties/common-shared.properties
  26. index 6ebd89c..e118218 100644
  27. --- a/core/src/main/resources/runtime-properties/common-shared.properties
  28. +++ b/core/src/main/resources/runtime-properties/common-shared.properties
  29. @@ -97,37 +97,37 @@ store.front.webapp.prefix=http://localhost:8080/
  30.  
  31.  # Settings for the default persistence unit
  32.  blPU.hibernate.hbm2ddl.auto=none
  33. -blPU.hibernate.dialect=org.broadleafcommerce.common.dialect.DemoHSQLDialect
  34. +blPU.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
  35.  blPU.hibernate.show_sql=false
  36.  blPU.hibernate.cache.use_second_level_cache=true
  37.  blPU.hibernate.cache.use_query_cache=true
  38.  blPU.hibernate.hbm2ddl.import_files=null
  39.  # Settings for the CMS storage persistence unit
  40.  blCMSStorage.hibernate.hbm2ddl.auto=none
  41. -blCMSStorage.hibernate.dialect=org.broadleafcommerce.common.dialect.DemoHSQLDialect
  42. +blCMSStorage.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
  43.  blCMSStorage.hibernate.show_sql=false
  44.  blCMSStorage.hibernate.cache.use_second_level_cache=true
  45.  blCMSStorage.hibernate.cache.use_query_cache=true
  46.  blCMSStorage.hibernate.hbm2ddl.import_files=null
  47.  # Settings for the secure persistence unit
  48.  blSecurePU.hibernate.hbm2ddl.auto=none
  49. -blSecurePU.hibernate.dialect=org.broadleafcommerce.common.dialect.DemoHSQLDialect
  50. +blSecurePU.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
  51.  blSecurePU.hibernate.show_sql=false
  52.  blSecurePU.hibernate.cache.use_second_level_cache=false
  53.  blSecurePU.hibernate.cache.use_query_cache=false
  54.  blSecurePU.hibernate.hbm2ddl.import_files=null
  55.  # Settings for the event persistence unit
  56.  blEventPU.hibernate.hbm2ddl.auto=none
  57. -blEventPU.hibernate.dialect=org.broadleafcommerce.common.dialect.DemoHSQLDialect
  58. +blEventPU.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
  59.  blEventPU.hibernate.show_sql=false
  60.  blEventPU.hibernate.cache.use_second_level_cache=false
  61.  blEventPU.hibernate.cache.use_query_cache=false
  62.  blEventPU.hibernate.hbm2ddl.import_files=null
  63.  
  64. -blPU.hibernate.hbm2ddl.import_files_sql_extractor=org.broadleafcommerce.common.util.sql.importsql.DemoHsqlSingleLineSqlCommandExtractor
  65. -blSecurePU.hibernate.hbm2ddl.import_files_sql_extractor=org.broadleafcommerce.common.util.sql.importsql.DemoHsqlSingleLineSqlCommandExtractor
  66. -blCMSStorage.hibernate.hbm2ddl.import_files_sql_extractor=org.broadleafcommerce.common.util.sql.importsql.DemoHsqlSingleLineSqlCommandExtractor
  67. -blEventPU.hibernate.hbm2ddl.import_files_sql_extractor=org.broadleafcommerce.common.util.sql.importsql.DemoHsqlSingleLineSqlCommandExtractor
  68. +blPU.hibernate.hbm2ddl.import_files_sql_extractor=
  69. +blSecurePU.hibernate.hbm2ddl.import_files_sql_extractor=
  70. +blCMSStorage.hibernate.hbm2ddl.import_files_sql_extractor=
  71. +blEventPU.hibernate.hbm2ddl.import_files_sql_extractor=
  72.  
  73.  auto.correct.sequence.generator.inconsistencies=true
  74.  
  75. @@ -203,4 +203,13 @@ searchRedirect.is.null.activeStartDate.active=false
  76.  
  77.  exception.handler.enabled=true
  78.  
  79. -logging.config=classpath:logging/logback.xml
  80. \ No newline at end of file
  81. +logging.config=classpath:logging/logback.xml
  82. +
  83. +
  84. +# your local database username, just a user that has readwrite permissions
  85. +database.user=root
  86. +# local database password
  87. +database.password=
  88. +database.driver=com.mysql.jdbc.Driver
  89. +# this connection URL assumes that it is connecting to a schema called broadleaf
  90. +database.url=jdbc:mysql://localhost:3306/broadleaf?useUnicode=true&amp;characterEncoding=utf8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement