Just having a play with the MultiTenancy Addon.
So I have followed instuctions here: https://github.com/Haulmont/jmix-multitenancy#readme
Just wondering, is the tenant automatically assigned to the creation of a new entity aswell? This is not happening for me…
i.e. I have created a new entity
public class MyEntity implements AcceptsTenant {
@JmixGeneratedValue
@Column(name = "ID", nullable = false)
@Id
private UUID id;
@TenantId
@Column(name = "TENANT_ID")
protected String tenantId;
But if I create a new entity logged in as a certain tenant the tenant id is not added.
Also any user can see any of these entities -> they are not being filtered by tenant.
Am i missing another interface or something?