BrightSide Workbench Full Report + Source Code
CustomerOwner.java
Go to the documentation of this file.
1 package org.turro.crm.entity;
2 
3 import java.util.Date;
4 import javax.persistence.*;
5 import org.turro.jpa.entity.IDaoEntity;
6 
11 @Entity
12 public class CustomerOwner implements java.io.Serializable, IDaoEntity {
13 
14  @Id
15  @GeneratedValue(strategy=GenerationType.IDENTITY)
16  @Column(name="IDENTIFIER")
17  private long id;
18 
19  @ManyToOne
20  private Vendor vendor;
21 
22  @ManyToOne
23  private Customer customer;
24 
25  @ManyToOne
26  private Formula comission;
27 
28  @ManyToOne
29  private Formula alert;
30 
31  @Temporal(TemporalType.TIMESTAMP)
32  private java.util.Date owningDate;
33 
34  public Formula getAlert() {
35  return alert;
36  }
37 
38  public void setAlert(Formula alert) {
39  this.alert = alert;
40  }
41 
42  public Formula getComission() {
43  return comission;
44  }
45 
46  public void setComission(Formula comission) {
47  this.comission = comission;
48  }
49 
50  public Customer getCustomer() {
51  return customer;
52  }
53 
54  public void setCustomer(Customer customer) {
55  this.customer = customer;
56  }
57 
58  public long getId() {
59  return id;
60  }
61 
62  public void setId(long id) {
63  this.id = id;
64  }
65 
66  public Date getOwningDate() {
67  return owningDate;
68  }
69 
70  public void setOwningDate(Date owningDate) {
71  this.owningDate = owningDate;
72  }
73 
74  public Vendor getVendor() {
75  return vendor;
76  }
77 
78  public void setVendor(Vendor vendor) {
79  this.vendor = vendor;
80  }
81 
82  /* IDaoEntity */
83 
84  @Override
85  public Object entityId() {
86  return id;
87  }
88 
89  @Override
90  public boolean isEmpty() {
91  return vendor == null || customer == null ||
92  comission == null || alert == null;
93  }
94 
95 }
void setOwningDate(Date owningDate)
void setComission(Formula comission)
void setCustomer(Customer customer)