BrightSide Workbench Full Report + Source Code
TouchPoint.java
Go to the documentation of this file.
1 package org.turro.crm.entity;
2 
3 import javax.persistence.*;
4 import org.turro.string.Strings;
5 
10 @Entity
11 public class TouchPoint implements java.io.Serializable {
12 
13  @Id
14  @GeneratedValue(strategy=GenerationType.IDENTITY)
15  @Column(name="IDENTIFIER")
16  private long id;
17 
18  private String name;
19 
20  private String tags;
21 
22  private int touchDegree;
23 
24  private boolean endsSale;
25 
26  private boolean positive;
27 
28  public boolean isEndsSale() {
29  return endsSale;
30  }
31 
32  public void setEndsSale(boolean endsSale) {
33  this.endsSale = endsSale;
34  }
35 
36  public long getId() {
37  return id;
38  }
39 
40  public void setId(long id) {
41  this.id = id;
42  }
43 
44  public String getName() {
45  return name;
46  }
47 
48  public void setName(String name) {
49  this.name = name;
50  }
51 
52  public boolean isPositive() {
53  return positive;
54  }
55 
56  public void setPositive(boolean positive) {
57  this.positive = positive;
58  }
59 
60  public String getTags() {
61  return tags;
62  }
63 
64  public void setTags(String tags) {
65  this.tags = tags;
66  }
67 
68  public int getTouchDegree() {
69  return touchDegree;
70  }
71 
72  public void setTouchDegree(int touchDegree) {
73  this.touchDegree = touchDegree;
74  }
75 
76  /* Helpers */
77 
78  public boolean isValid() {
79  return !Strings.isBlank(name);
80  }
81 
82 }
void setTouchDegree(int touchDegree)
Definition: TouchPoint.java:72
void setPositive(boolean positive)
Definition: TouchPoint.java:56
void setEndsSale(boolean endsSale)
Definition: TouchPoint.java:32