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 @Column(name=
"SERVICE_NAME")
42 @Column(name=
"SERVICE_INTERNAL")
43 private boolean internal;
45 private double structureMargin, profitMargin;
47 private boolean alwaysApply;
52 @OneToMany(mappedBy =
"service", fetch = FetchType.EAGER)
53 @OrderBy(value=
"name ASC")
54 private Set<Contract> stores =
new HashSet<Contract>();
61 this.company = company;
66 return structureMargin;
70 this.structureMargin = structureMargin;
87 this.
internal = internal;
105 this.profitMargin = profitMargin;
114 this.alwaysApply = alwaysApply;
122 this.stores = stores;
134 return Strings.isBlank(name);
void setStores(Set< Contract > stores)
void setInternal(boolean internal)
void setCompany(Company company)
void setName(String name)
void setStructureMargin(double structureMargin)
Set< Contract > getStores()
double getStructureMargin()
void setProfitMargin(double profitMargin)
void setAlwaysApply(boolean alwaysApply)