18 package org.turro.financials.entity;
20 import java.util.HashSet;
22 import javax.persistence.*;
23 import org.turro.string.Strings;
24 import org.turro.financials.model.business.IValuation;
25 import org.turro.jpa.entity.IDaoEntity;
35 @GeneratedValue(strategy=GenerationType.IDENTITY)
36 @Column(name=
"IDENTIFIER")
39 private double structureMargin, profitMargin;
41 private boolean alwaysApply;
43 @Column(name=
"DEPARTMENT_NAME")
49 @OneToMany(mappedBy =
"department", fetch = FetchType.EAGER)
50 @OrderBy(value=
"name ASC")
51 private Set<Contract> stores =
new HashSet<Contract>();
55 return structureMargin;
59 this.structureMargin = structureMargin;
67 this.headquarters = headquarters;
94 this.profitMargin = profitMargin;
103 this.alwaysApply = alwaysApply;
111 this.stores = stores;
123 return Strings.isBlank(name);
129 return headquarters.getName() +
" | " +
void setName(String name)
void setAlwaysApply(boolean alwaysApply)
double getStructureMargin()
void setProfitMargin(double profitMargin)
void setHeadquarters(Headquarters headquarters)
Set< Contract > getStores()
Headquarters getHeadquarters()
void setStores(Set< Contract > stores)
void setStructureMargin(double structureMargin)