I am trying to extend email template to ExtEmaiTemplate but getting the following error:
Here is the generated code of the entity:
mport javax.persistence.Entity;
import javax.persistence.DiscriminatorValue;
import com.haulmont.cuba.core.entity.annotation.Extends;
import javax.persistence.Column;
import com.haulmont.addon.emailtemplates.entity.EmailTemplate;
@Extends(EmailTemplate.class)
@DiscriminatorValue("EXT")
@Entity(name = "erp$ExtEmailTemplate")
public class ExtEmailTemplate extends EmailTemplate {
private static final long serialVersionUID = -3937357577346702173L;
@Column(name = "TENANT_ID")
protected String tenantId;
public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}
public String getTenantId() {
return tenantId;
}
}
Thanks for any help.