19 package org.turro.elephant.entities.db;
21 import java.io.Serializable;
22 import java.util.Objects;
23 import org.turro.participation.ParticipationReason;
24 import org.turro.path.ComplexNode;
32 private String entityPath;
33 private String participatorPath;
41 this.entityPath = entityPath;
45 return participatorPath;
49 this.participatorPath = participatorPath;
63 return from(ComplexNode.complex(
id));
68 epk.entityPath =
id.node(0);
69 epk.participatorPath =
id.node(1);
79 hash = 59 * hash + Objects.hashCode(this.entityPath);
80 hash = 59 * hash + Objects.hashCode(this.participatorPath);
81 hash = 59 * hash + Objects.hashCode(this.reason);
93 if (getClass() != obj.getClass()) {
97 if (!Objects.equals(
this.entityPath, other.entityPath)) {
100 if (!Objects.equals(
this.participatorPath, other.participatorPath)) {
103 if (this.reason != other.reason) {
static EntityParticipationPK from(ComplexNode id)
String getParticipatorPath()
static EntityParticipationPK from(String id)
void setReason(ParticipationReason reason)
void setParticipatorPath(String participatorPath)
void setEntityPath(String entityPath)
ParticipationReason getReason()
boolean equals(Object obj)