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.PhraseBuilder;
36 @GeneratedValue(strategy=GenerationType.IDENTITY)
37 @Column(name=
"IDENTIFIER")
42 private double typeValue;
44 private String pattern;
51 private double coefficient;
63 this.coefficient = coefficient;
79 this.lineType = lineType;
83 return operatingModifier;
87 this.operatingModifier = operatingModifier;
95 this.pattern = pattern;
103 this.position = position;
119 this.typeValue = typeValue;
133 PhraseBuilder pb =
new PhraseBuilder();
134 pb.addWord(type.name());
136 pb.addWord(position.name());
137 pb.addWord(view.getName());
138 pb.addWord(coefficient +
"");
139 return pb.toString();
void setCoefficient(double coefficient)
void setView(RegisterView view)
void setOperatingModifier(OperatingModifier operatingModifier)
OperatingModifier getOperatingModifier()
void setType(LineTypeAccountType type)
void setPattern(String pattern)
LineTypeAccountType getType()
void setTypeValue(double typeValue)
void setPosition(AccountPosition position)
AccountPosition getPosition()
void setLineType(LineType lineType)