I am using dictionaryBootstrap to bootstrap a content model. My jar version is 1.0 for both share and platform jar.
<bean id="com.mercuria.alfresco.bootstrap.modelLoader" parent="dictionaryBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/module/${project.artifactId}/model/test-model.xml</value>
</list>
</property>
</bean>
</beans>Now if I want to add more content model types, or add properties to the existing content model that was bootstrapped as part of version 1.0 above. For discussion sake, lets assume that test-model.xml has content model for Aspect-A.
1. Lets say I want to add a new aspect called 'Aspect-B' to my content model, so can I add it to same file 'test-model.xml' and increment the version of the jar to 2.0? Is alfresco capable of differentiating an existing model that has already been bootstrapped, because some contents of my test-model.xml will also be in version 2.0. I am not sure how alfresco will deal with it or should I add only the new attribute?
2. If I want to add an additional attribute to Aspect-A and bootstrap the new attribute. How should I bootstrap an additional attribute to an existing bootstrapped aspect in alfresco instance?