TenantId static initializer
This commit is contained in:
parent
7d78437258
commit
8611349e4b
@ -28,10 +28,14 @@ import java.util.UUID;
|
|||||||
public final class TenantId extends UUIDBased implements EntityId {
|
public final class TenantId extends UUIDBased implements EntityId {
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
public static final TenantId SYS_TENANT_ID = TenantId.fromUUID(EntityId.NULL_UUID);
|
public static final TenantId SYS_TENANT_ID = new TenantId(EntityId.NULL_UUID);
|
||||||
|
|
||||||
static final ConcurrentReferenceHashMap<UUID, TenantId> tenants = new ConcurrentReferenceHashMap<>(16, ReferenceType.SOFT);
|
static final ConcurrentReferenceHashMap<UUID, TenantId> tenants = new ConcurrentReferenceHashMap<>(16, ReferenceType.SOFT);
|
||||||
|
|
||||||
|
static {
|
||||||
|
tenants.put(SYS_TENANT_ID.getId(), SYS_TENANT_ID);
|
||||||
|
}
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user