alfrescoalfresco-sharealfresco-webscriptsalfresco-maven

I need to create a model like a sql table on alfresco


I need to create a model for cities that contains only the fields id, city name, like a sql table but without creating a file that is not inheriting any Alfresco model (content, folder, etc). I can do that? or it is obligatory to inherit from the Alfresco models


Solution

  • By seeing the definition of sys:base (root object) :

    <type name="sys:base">
      <title>Base</title>
      <mandatory-aspects>
        <aspect>sys:referenceable</aspect>
        <aspect>sys:localized</aspect>
      </mandatory-aspects>
    </type>
    

    I would say that it should be possible to create a type without inheriting from something.

    But the best shot would be to do the try.

    You can inherit from sys:base anyway.