How to extend Tenant entity

Hi team,
I want to extend Tenant entity.

import io.jmix.core.entity.annotation.ReplaceEntity;
import io.jmix.core.metamodel.annotation.JmixEntity;
import io.jmix.multitenancy.entity.Tenant;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@DiscriminatorValue("C")
@JmixEntity
@Entity(name = "crm_Company")
@ReplaceEntity(Tenant.class)
public class Company extends Tenant {

@Column(name = "ADDRESS")
private String address;

@Column(name = "LOGO")
private String logo;

public String getLogo() {
    return logo;
}

public void setLogo(String logo) {
    this.logo = logo;
}

public String getAddress() {
    return address;
}

public void setAddress(String address) {
    this.address = address;
}
}

But, when i’m opening tenant-browse screen i’m getting error
image

And i don’t know how to extend tenant-browse.xml and tenant-edit.xml
In cuba-platform it was easy. There was web-screens.xml. But in jmix i can’t find solution for this.
Is there any solution or sample project for this case.

PS: i’m using hover theme :wink:

Hi @nurmuhammad.abdurash

Thank you for reporting the problem. We have created the Youtrack issue.

Regarding the issue of overriding screens you can use option Override an existing screen in the screen creation dialog:
image

Regards,
Nadezhda.

1 Like

Thanks Nadezhda. :+1: :+1: :+1: