18 package org.turro.financials.entity;
20 import javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.GeneratedValue;
23 import javax.persistence.GenerationType;
24 import javax.persistence.Id;
25 import javax.persistence.ManyToOne;
26 import org.turro.util.CompareUtil;
33 public class RelatedDocument implements java.io.Serializable, Comparable<RelatedDocument> {
36 @GeneratedValue(strategy=GenerationType.IDENTITY)
37 @Column(name=
"IDENTIFIER")
40 private boolean allowed;
53 this.allowed = allowed;
57 return contractDefinition;
61 this.contractDefinition = contractDefinition;
65 return documentDefinition;
69 this.documentDefinition = documentDefinition;
82 int result = CompareUtil.compare(documentDefinition.getName(), o.documentDefinition.
getName());
84 CompareUtil.compare(
id, o.id);