Hello,
I have an entity Branch:
<bean
id="Branch"
parent="entity">
<constructor-arg value="org.popsuite.hr.model.Branch" />
<property name="propertyDescriptors">
<list>
<bean parent="stringType">
<property name="name" value="name" />
<property name="i18nNameKey" value="branch.name" />
<property name="maxLength" value="60" />
</bean>
<bean parent="stringType">
<property name="name" value="code" /><!-- registration number, e.g. SIRET number in France -->
<property name="i18nNameKey" value="branch.code" />
<property name="maxLength" value="20" />
</bean>
<bean parent="stringType">
<property name="name" value="category" /><!-- activity code, e.g. NAF code in France -->
<property name="i18nNameKey" value="branch.category" />
<property name="maxLength" value="20" />
</bean>
<ref local="Branch-workers" />
</list>
</property>
<property
name="iconImageURL" value="classpath:org/popsuite/hr/images/factory.png" />
</bean>
displayed as a module with:
<bean parent="abstractFilterableBeanCollectionModule">
<property name="name" value="masterdata.branch.module" />
<property name="description" value="masterdata.branch.module.description" />
<property name="elementComponentDescriptor" ref="Branch" />
</bean>
Everything runs fine until I add a new attribute:
<bean parent="refType">
<property name="name" value="legalStatus" />
<property name="referencedDescriptor" ref="LegalStatusType" />
</bean>
with this definition:
<bean
id="LegalStatusType"
parent="entity">
<constructor-arg value="org.popsuite.hr.model.LegalStatusType" />
<property name="propertyDescriptors">
<list>
<bean parent="stringType">
<property name="name" value="name" />
</bean>
<bean parent="stringType">
<property name="name" value="abbreviation" />
</bean>
</list>
</property>
</bean>
then only the branches with attribute "legalStatus" initialized are displayed in the module list.
It is still true if I remove this attribute of the list of attributes displayed in the list (renderedProperties).
Is it the expected behavior? If not, what did I miss?
Regards
Pierre
