cancel
Showing results for 
Search instead for 
Did you mean: 

Same property name in differents types

enricocerica
Champ in-the-making
Champ in-the-making
Hi all,

Here is our problem :

We've defined two types in one single model file and these two types share some identical properties, I mean with the same name. So we've created two separated types nodes containing their own properties node where we have for example the property "name" defined in each one.

This configuration does not seem to work as Alfresco doesn't start properly and several error messages are displayed during the starting process. If I remove the properties in the second type, I mean if I don't define properties already in a previous type, it works much better.

So my question is : is it possible to define in a new type a property already used in a existing type defined in the same model file ? I know that using aspects this problem may be solved but, as aspects are defined on a space, it does not satisfy our requirements.

Thanks
Enrico
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

Property names have to be unique. Put them on an aspect, a super type or in different name spaces. If they are the same property you need to define an aspect or create a super type and inherit the common properties ….


Andy