When I create a new registry, the system shows me a permissions error. Try to make the settings exposed in the thread, but still fail. The funny thing is that the record if it’s created.
Caused by: com.haulmont.cuba.core.global.EntityAccessException: Unable to load entity because it has been deleted or access denied
at com.haulmont.cuba.client.sys.DataManagerClientImpl.reload(DataManagerClientImpl.java:89)
at com.haulmont.cuba.client.sys.DataManagerClientImpl.reload(DataManagerClientImpl.java:74)
at com.haulmont.cuba.client.sys.DataManagerClientImpl.reload(DataManagerClientImpl.java:69)
at com.haulmont.cuba.gui.data.impl.GenericDataSupplier.reload(GenericDataSupplier.java:45)
at com.iis.izzy.web.common.department.DepartmentBrowse.cancel(DepartmentBrowse.java:160)
... 63 more
Model
@NamePattern("%s|name")
@Table(name = "IISCF_DEPARTMENT", uniqueConstraints = {
@UniqueConstraint(name = "IDX_IIS_DEPARTMENT_UNQ", columnNames = {"IDENTIFICATION", "COUNTRY_ID"})
})
@Entity(name = "iis$Department")
public class Department extends Tracking {
private static final long serialVersionUID = 3601370893447314579L;
@Column(name = "IDENTIFICATION", nullable = false, length = 5)
private String identification;
@Column(name = "NAME", nullable = false, length = 80)
private String name;
@Lookup(type = LookupType.DROPDOWN, actions = {"lookup"})
@ManyToOne(fetch = FetchType.LAZY, optional = false)
@JoinColumn(name = "COUNTRY_ID")
private Country country;
@Column(name = "INACTIVE", nullable = false)
private Boolean inactive = false;
I attached the view. The code in DepartmentBrowse is the standard generated by studio.