Embeddable entity - Descriptor warnings

Hello,

This isn’t a huge thing, and maybe it’s known already, but I didn’t see anything in the forum yet. In Jmix 2.x, when including an embeddable entity in another entity and creating a view of the second entity (I only tested using a detail view), there are some warnings in the view’s descriptor file that gets generated automatically.

image

XML Descriptor

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<view xmlns="http://jmix.io/schema/flowui/view"
      title="msg://orderCheckIn2DetailView.title"
      focusComponent="form">
    <data>
        <instance id="orderCheckInDc"
                  class="com.acfgl.bxacf.entity.OrderCheckIn">
            <fetchPlan extends="_base">
                <property name="location" fetchPlan="_instance_name">
                    <property name="streetAddress"/>
                    <property name="streetAddressAdditional"/>
                    <property name="city"/>
                    <property name="stateProvinceRegion"/>
                    <property name="zipPostalCode"/>
                    <property name="country"/>
                    <property name="latitude"/>
                    <property name="longitude"/>
                    <property name="addressFormatted"/>
                </property>
            </fetchPlan>
            <loader/>
        </instance>
    </data>
    <facets>
        <dataLoadCoordinator auto="true"/>
    </facets>
    <actions>
        <action id="saveAction" type="detail_saveClose"/>
        <action id="closeAction" type="detail_close"/>
    </actions>
    <layout>
        <formLayout id="form" dataContainer="orderCheckInDc">
            <textField id="locationStreetAddressField" property="location.streetAddress"/>
            <textField id="locationStreetAddressAdditionalField" property="location.streetAddressAdditional"/>
            <textField id="locationCityField" property="location.city"/>
            <textField id="locationStateProvinceRegionField" property="location.stateProvinceRegion"/>
            <textField id="locationZipPostalCodeField" property="location.zipPostalCode"/>
            <textField id="locationCountryField" property="location.country"/>
            <textField id="locationLatitudeField" property="location.latitude"/>
            <textField id="locationLongitudeField" property="location.longitude"/>
            <textField id="locationAddressFormattedField" property="location.addressFormatted"/>
            <comboBox id="deliveryMethodField" property="deliveryMethod"/>
        </formLayout>
        <hbox id="detailActions">
            <button id="saveAndCloseBtn" action="saveAction"/>
            <button id="closeBtn" action="closeAction"/>
        </hbox>
    </layout>
</view>

Perhaps I did something wrong. If so, please let me know.

Thanks,
Adam

Hello Adam,

Actually, “_base” fetch plan includes local attributes from embedded entities too, so adding property location with local attributes only is not necessary.

Other inspections looks strange for me.

Could you please provide exact Jmix version and Jmix Plugin version?

Am I understand correctly that this inline fetchPlan have been generated automatically and not edited manually?
Is Location include any reference attributes or local only?

Regards,
Dmitry

Hi, Adam

I created Studio issue.
It will be fixed in next Studio patch release.

Thank you for feedback,
Regards,
Mikhail