18 package org.turro.contacts;
20 import java.util.Date;
21 import javax.persistence.Entity;
22 import javax.persistence.Id;
23 import javax.persistence.IdClass;
24 import javax.persistence.Temporal;
25 import org.turro.string.Strings;
32 @IdClass(RelatedPathsPK.class)
35 @Id
private String origin;
36 @Id
private String destination;
38 private String description;
40 private boolean unbreakable;
42 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
43 private java.util.Date creation;
50 this.creation = creation;
58 this.description = description;
66 this.destination = destination;
82 this.unbreakable = unbreakable;
88 return Strings.isBlank(origin) || Strings.isBlank(destination);