DataGrid editor doesn't take into account an entity attribute LookupType

I knew that it was obvious. Thanks Gleb !

While at it, I have another question: on an entity field with annotation @Lookup set to DROPDOWN, I was expecting to have a dropdown like the product field you can see in the screenshot.

But I had to override the field generator to get a dropdown for product. If you look at Mu field, also set to DROPDOWN, I did not override the field generator and I have a picker, not a dropdown.

Is it intended, or there is something else I have to configure ?

    @Lookup(type = LookupType.DROPDOWN, actions = {"lookup"})
    @ManyToOne(fetch = FetchType.LAZY, optional = false)
    @JoinColumn(name = "PRODUCT_ID")
    protected Product product;

    @Lookup(type = LookupType.DROPDOWN, actions = {"lookup", "open", "clear"})
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "MU_ID")
    protected Mu mu;

Hi,

In fact, no component takes into account the LookupType value. Studio uses this attribute while creating an entity editor screen. Nevertheless, it’s a good idea to generate DataGrid editor fields with respect to the LookupType value. I’ve created a GitHub issue.

Regards,
Gleb

Agreed, thanks Gleb.