Hello,
I refer to the reference guide mentioning initializationmapping on page 72. I tried to build a somewhat different example, but without success.
My entity "Proposal" refers to the entity "Product" that contains a field "productSate". I want to initialize the "productState" field in my search with a constant value ,namely "active". I tried the XML below:
<bean id="Product"......
......
<list>
......
<bean class="org.jspresso.framework.model.descriptor.basic.BasicReferencePropertyDescriptor">
<property name="name" value="product" />
<property name="referencedDescriptor" ref="Product" />
<property name="mandatory" value="true" />
<property name="initializationMapping">
<map>
<entry key="productState" value="active" />
</map>
</property>
</bean>
......
Of course I imagine I have to specify something different because "active" is a constant value. Also I am not sure about the key attribute "productState", that is the name of a field within Product.
Any more explanation on initializationmapping?
Thanks,
Marc
