mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix AR-1208
- Issuers were using Spring init to load data. The Hibernate database auto-update was switch on and this bypassed the SchemaBootstrap. - Added an AvmBootstrap bean for initializing AVM components that require DB interaction git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5042 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
|
||||
<!-- ID Issuers. -->
|
||||
|
||||
<bean id="nodeIssuer" class="org.alfresco.repo.avm.Issuer"
|
||||
depends-on="avmDAOs" init-method="init">
|
||||
<bean id="nodeIssuer" class="org.alfresco.repo.avm.Issuer" depends-on="avmDAOs" >
|
||||
<property name="name">
|
||||
<value>node</value>
|
||||
</property>
|
||||
@@ -16,8 +15,7 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<bean id="layerIssuer" class="org.alfresco.repo.avm.Issuer"
|
||||
depends-on="avmDAOs" init-method="init">
|
||||
<bean id="layerIssuer" class="org.alfresco.repo.avm.Issuer" depends-on="avmDAOs" >
|
||||
<property name="name">
|
||||
<value>layer</value>
|
||||
</property>
|
||||
|
@@ -49,6 +49,16 @@
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- Bootstrap the AVM -->
|
||||
<bean id="avmBootstrap" class="org.alfresco.repo.avm.AvmBootstrap" >
|
||||
<property name="issuers">
|
||||
<list>
|
||||
<ref bean="nodeIssuer" />
|
||||
<ref bean="layerIssuer" />
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- Bootstrap Files -->
|
||||
|
||||
|
@@ -31,7 +31,7 @@
|
||||
</bean>
|
||||
<bean id="sessionFactoryBase" abstract="true">
|
||||
<property name="schemaUpdate">
|
||||
<value>true</value>
|
||||
<value>false</value>
|
||||
</property>
|
||||
<property name="mappingResources">
|
||||
<list>
|
||||
@@ -58,7 +58,7 @@
|
||||
<!-- from elsewhere -->
|
||||
<!-- -->
|
||||
<value>org/jbpm/graph/action/Script.hbm.xml</value>
|
||||
<value>org/jbpm/db/hibernate.queries.hbm.xml</value>
|
||||
<value>org/jbpm/db/hibernate.queries.hbm.xml</value>
|
||||
<value>org/jbpm/graph/def/ProcessDefinition.hbm.xml</value>
|
||||
<value>org/jbpm/graph/def/Node.hbm.xml</value>
|
||||
<value>org/jbpm/graph/def/Transition.hbm.xml</value>
|
||||
|
Reference in New Issue
Block a user