19 package org.turro.alliance.db.entities;
21 import java.io.Serializable;
22 import java.util.Objects;
23 import javax.persistence.Embeddable;
24 import org.turro.string.Strings;
25 import org.turro.math.Zero;
26 import org.turro.plugin.contacts.CompoundId;
27 import org.turro.ws.WsMember;
28 import org.turro.ws.service.server.Clients;
37 private String entityId;
38 private Long memberId;
45 this.entityId = entityId;
53 this.memberId = memberId;
76 return Strings.isBlank(entityId) ||
Zero.
orNull(memberId);
80 return Clients.getMember(memberId);
86 hash = 67 * hash + Objects.hashCode(this.entityId);
87 hash = 67 * hash + Objects.hashCode(this.memberId);
99 if (getClass() != obj.getClass()) {
103 if (!Objects.equals(
this.entityId, other.entityId)) {
106 return Objects.
equals(this.memberId, other.memberId);
void setMemberId(Long memberId)
boolean equals(Object obj)
static ProcedenceId from(String id)
void setEntityId(String entityId)
static boolean orNull(Number value)