As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
… CML cml = new CML(); CMLCreate create = new CMLCreate("1", parent, null, Constants.ASSOC_CONTAINS, null, documentTypeQName, properties); CMLAddAspect aspect = new CMLAddAspect(aspectName, aspectProperties, null, "1"); CMLCreate create2 = new CMLCreate("2", parent, null, Constants.ASSOC_CONTAINS, null, documentTypeQName2, properties2); CMLAddAspect aspect2 = new CMLAddAspect(aspectName2, aspectProperties2, null, "2"); cml.setAddAspect(new CMLAddAspect[] {aspect, aspect2}); cml.setCreate(new CMLCreate[] { create, create2 }); UpdateResult[] results = getRepositoryService().update(cml); …
To answer your first question, alfresco uses the ContentModelling concept store the data.You can explore content modelling in alfresco to ge the answer.