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.entities.Entities;
27 import org.turro.entities.IElephantEntity;
28 import org.turro.string.Strings;
35 @IdClass(RelatedPK.class)
36 public class
Related implements java.io.Serializable {
38 @Id
private String origin;
39 @Id
private String destination;
41 private String description;
43 private boolean unbreakable;
45 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
46 private java.util.Date creation;
53 this.creation = creation;
61 this.description = description;
69 this.destination = destination;
85 this.unbreakable = unbreakable;
91 return Strings.isBlank(origin) || Strings.isBlank(destination);
static IElephantEntity getController(String path)