<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to set database table prefix when using Spring Boot? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-database-table-prefix-when-using-spring-boot/m-p/222394#M175524</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Experts,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; I am trying to switch my Activiti 5.19.0 + Spring Boot application to Oracle database. All Activiti tables have been already created by DBA in a dedicated schema. According to documentation, I need to specify database table prefix in order for Activiti queries to run successfully. Otherwise, Activiti doesn't find the tables. I tried adding the following entries in application.properties. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;spring.activiti.databaseSchema=GM_ACTIVITI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spring.activiti.databaseTablePrefix=GM_ACTIVITI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;spring.activiti.tablePrefixIsSchema=true&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I'm debugging through Activiti code (ProcessEngineConfiguration), I can see that configuration for databaseSchema is applied, but databaseTablePrefix and tablePrefixIsSchema are not. If I set databaseTablePrefix and databaseTablePrefix during run-time then queries are executed fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea how to configure databaseTablePrefix and tablePrefixIsSchema in application.properties? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Mar 2016 18:34:18 GMT</pubDate>
    <dc:creator>jubedus</dc:creator>
    <dc:date>2016-03-03T18:34:18Z</dc:date>
    <item>
      <title>How to set database table prefix when using Spring Boot?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-database-table-prefix-when-using-spring-boot/m-p/222394#M175524</link>
      <description>Hello Experts,&amp;nbsp; I am trying to switch my Activiti 5.19.0 + Spring Boot application to Oracle database. All Activiti tables have been already created by DBA in a dedicated schema. According to documentation, I need to specify database table prefix in order for Activiti queries to run successfully. Ot</description>
      <pubDate>Thu, 03 Mar 2016 18:34:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-database-table-prefix-when-using-spring-boot/m-p/222394#M175524</guid>
      <dc:creator>jubedus</dc:creator>
      <dc:date>2016-03-03T18:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to set database table prefix when using Spring Boot?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-database-table-prefix-when-using-spring-boot/m-p/222395#M175525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So just to make sure: you were able to make it work by changing the process engine config programmatically?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In that case, it might simply be that the properties are not read and passed into the engine. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 09:52:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-database-table-prefix-when-using-spring-boot/m-p/222395#M175525</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-07T09:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to set database table prefix when using Spring Boot?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-database-table-prefix-when-using-spring-boot/m-p/222396#M175526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Thanks for your reply!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; No, I'm still trying to figure out how to change the process engine config programmatically. I was able the change the values of the process engine config as I was debugging through the application in Eclipse. Do you have an example of how to change process engine config in a Spring Boot application on start-up? Thanks a lot in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since table prefix is not listed in ActivitiProperties, does it mean it can't be set through configuration?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 22:40:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-database-table-prefix-when-using-spring-boot/m-p/222396#M175526</guid>
      <dc:creator>jubedus</dc:creator>
      <dc:date>2016-03-07T22:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to set database table prefix when using Spring Boot?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-database-table-prefix-when-using-spring-boot/m-p/222397#M175527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a configurer class you can use: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-spring-boot/spring-boot-starters/activiti-spring-boot-starter-basic/src/main/java/org/activiti/spring/boot/ProcessEngineConfigurationConfigurer.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-spring-boot/spring-boot-starters/activiti-spring-boot-starter-basic/src/main/java/org/activiti/spring/boot/ProcessEngineConfigurationConfigurer.java&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed, since it's not in ActivitiProperties, it's not read and passed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 09:07:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-database-table-prefix-when-using-spring-boot/m-p/222397#M175527</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-11T09:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to set database table prefix when using Spring Boot?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-set-database-table-prefix-when-using-spring-boot/m-p/222398#M175528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you made any progress on this? I'm having a similar issue. I created the activiti tables via sql scripts, and to stop activiti from complaining that the tables exist when I start spring boot, I added the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Bean&lt;BR /&gt; StandaloneProcessEngineConfiguration standaloneProcessEngineConfiguration() {&lt;BR /&gt; StandaloneProcessEngineConfiguration standaloneProcessEngineConfiguration =&lt;BR /&gt; new StandaloneProcessEngineConfiguration();&lt;BR /&gt; standaloneProcessEngineConfiguration.setDatabaseSchemaUpdate("true");&lt;BR /&gt; return standaloneProcessEngineConfiguration;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I get the below stack trace:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.activiti.engine.ProcessEngineConfiguration] is defined: expected single matching bean but found 2: standaloneProcessEngineConfiguration,springProcessEngineConfiguration&lt;BR /&gt; at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1126)&lt;BR /&gt; at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)&lt;BR /&gt; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545)&lt;BR /&gt; ... 25 more&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, the bean is already defined by default and I need to figure out a clean workaround for this. Are you getting that same exception by any chance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 18:18:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-set-database-table-prefix-when-using-spring-boot/m-p/222398#M175528</guid>
      <dc:creator>shere_khan_</dc:creator>
      <dc:date>2016-12-22T18:18:51Z</dc:date>
    </item>
  </channel>
</rss>

