In this tutorial you will add an association to your
model.
This tutorial assumes you have completed the previous tutorials in this
series.
You will see how to create an association and add it to your model. An association
is a logical link between content types, it is a way of connecting related
content.
- In Eclipse, load customModel.xml into the editor.
-
Change the MyCompany generic document type to the following code:
<!-- Enterprise-wide generic document type --> <type name="my:doc"> <title>MyCompany Generic Document</title> <parent>cm:content</parent> <associations> <association name="my:relatedDocuments"> <title>Related Documents</title> <source> <mandatory>false</mandatory> <many>true</many> </source> <target> <class>my:doc</class> <mandatory>false</mandatory> <many>true</many> </target> </association> </associations> </type>
- Right-click the build.xml file in the Eclipse Package Explorer and select to build the JAR containing the model and deploy it.
- You will now need to restart SkyVault.
The association has been created and deployed.