BrightSide Workbench Full Report + Source Code
ActivitySector.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 ActivitySector 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  public long getId() {
21  return id;
22  }
23 
24  public void setId(long id) {
25  this.id = id;
26  }
27 
28  public String getName() {
29  return name;
30  }
31 
32  public void setName(String name) {
33  this.name = name;
34  }
35 
36  /* Helpers */
37 
38  public boolean isValid() {
39  return !Strings.isBlank(name);
40  }
41 
42 }