18 package org.turro.financials.entity;
20 import javax.persistence.*;
21 import org.turro.util.CompareUtil;
22 import org.zkoss.lang.Strings;
29 public class ContractPreference implements java.io.Serializable, Comparable<ContractPreference> {
32 @GeneratedValue(strategy=GenerationType.IDENTITY)
33 @Column(name=
"IDENTIFIER")
41 private String asOperating, asTax, asRetention, asContact, asCash;
48 this.asOperating = asOperating;
56 this.asRetention = asRetention;
68 return contractDefinition;
72 this.contractDefinition = contractDefinition;
104 this.asContact = asContact;
110 return contractDefinition ==
null || Strings.isEmpty(name);
129 int result = CompareUtil.compare(name, o.name);
131 result = CompareUtil.compare(
id, o.id);
void setContractDefinition(ContractDefinition contractDefinition)
void setName(String name)
String getAsRetention(Contract contract)
void setAsRetention(String asRetention)
void setAsContact(String asContact)
String getAsOperating(Contract contract)
ContractDefinition getContractDefinition()
void setAsOperating(String asOperating)
String getAsTax(Contract contract)
void setAsCash(String asCash)
void setAsTax(String asTax)
int compareTo(ContractPreference o)
OperatingModifier getOperatingModifier()