Hi All
Attached you find a simple application
- address entity with 1:M composition of many contacts
dcTwo.zip (110.2 KB)
In address-detail-view i want to display all contacts of this address sorted by date.
I made a collection
<collection id="contactDc2" class="com.company.dctwo.entity.Contact">
<fetchPlan extends="_base">
<property name="adres" fetchPlan="_base"/>
</fetchPlan>
<loader>
<query>
<![CDATA[select e from Contact e where e.adres.id = :component_id order by e.date desc]]>
</query>
</loader>
</collection>
Everything is working fine, except when I want to create a new contact !
The
<entityPicker id="adresField" property="adres">
in contact-detail-view does not get populated anymore …
What do I miss ?
Thank you for any hints
Best regards
Felix