18 package org.turro.erp.entity;
20 import java.util.Date;
21 import java.util.HashSet;
23 import javax.persistence.*;
30 public class Budget implements java.io.Serializable {
33 @GeneratedValue(strategy=GenerationType.IDENTITY)
34 @Column(name=
"IDENTIFIER")
37 @Column(name=
"BUDGET_DATE")
38 @Temporal(value = TemporalType.DATE)
39 private Date budgetDate;
41 private long budgetNumber;
45 private String description;
47 private boolean delivered, accepted, refused;
49 private double units, price;
52 private org.turro.erp.entity.OrderReference orderReference;
54 @OneToMany(fetch = FetchType.EAGER, cascade= CascadeType.ALL, orphanRemoval=
true)
56 private Set<Breakdown> breakdowns =
new HashSet<Breakdown>();
63 this.accepted = accepted;
71 this.breakdowns = breakdowns;
79 this.budgetDate = budgetDate;
87 this.budgetNumber = budgetNumber;
95 this.delivered = delivered;
103 this.description = description;
115 return orderReference;
119 this.orderReference = orderReference;
135 this.refused = refused;
159 breakdowns.add(breakdown.clone());
void setPrice(double price)
void setUnits(double units)
void setDescription(String description)
void setAccepted(boolean accepted)
void setBreakdowns(Set< Breakdown > breakdowns)
void setRefused(boolean refused)
Set< Breakdown > getBreakdowns()
void initFrom(OrderReference orderReference, long number)
OrderReference getOrderReference()
void setOrderReference(OrderReference orderReference)
void setBudgetNumber(long budgetNumber)
void setDelivered(boolean delivered)
void setBudgetDate(Date budgetDate)
String getSomeDescription()
Set< Breakdown > getBreakdowns()