19 package org.turro.elephant.entities.db;
21 import java.util.Date;
22 import javax.persistence.Entity;
23 import javax.persistence.Id;
24 import javax.persistence.IdClass;
25 import javax.persistence.Temporal;
26 import org.turro.action.Contacts;
27 import org.turro.entities.Entities;
28 import org.turro.entities.IElephantEntity;
29 import org.turro.participation.IEntityParticipation;
30 import org.turro.participation.ParticipationReason;
31 import org.turro.path.ComplexNode;
32 import org.turro.plugin.contacts.IContact;
39 @IdClass(EntityParticipationPK.class)
42 @Id
private String entityPath;
44 @Id
private String participatorPath;
48 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
49 private java.util.Date participationDate;
57 this.entityPath = entityPath;
62 return participatorPath;
66 this.participatorPath = participatorPath;
80 return participationDate;
84 this.participationDate = participationDate;
90 return ComplexNode.create(entityPath, participatorPath, reason.toString());
void setParticipationDate(Date participationDate)
void setReason(ParticipationReason reason)
String getParticipatorPath()
IElephantEntity getParticipator()
void setParticipatorPath(String participatorPath)
Date getParticipationDate()
IElephantEntity getEntity()
ParticipationReason getReason()
void setEntityPath(String entityPath)
static IElephantEntity getController(String path)