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.jpa.entity.IDaoEntity;
36 @GeneratedValue(strategy=GenerationType.IDENTITY)
37 @Column(name=
"IDENTIFIER")
51 this.ancestor = ancestor;
59 this.descendant = descendant;
79 return ancestor ==
null ||
81 (descendant !=
null && descendant.isEmpty());
void setDescendant(Document descendant)
void setAncestor(Document ancestor)