BrightSide Workbench Full Report + Source Code
JobBoard.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2021 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 package org.turro.contacts;
20 
21 import java.util.Date;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.GeneratedValue;
25 import javax.persistence.Id;
26 import javax.persistence.OneToOne;
27 import javax.persistence.Temporal;
28 
33 @Entity
34 @org.hibernate.annotations.GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
35 public class JobBoard implements java.io.Serializable {
36 
37  @Id
38  @GeneratedValue(generator = "hibernate-uuid")
39  @Column(name="IDENTIFIER")
40  private String id;
41 
42  private String zipCode;
43  private int commuting;
44  private boolean available, online;
45 
46  @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
47  private Date updateDate;
48 
49  @OneToOne
50  private Contact contact;
51 
52  public String getId() {
53  return id;
54  }
55 
56  public void setId(String id) {
57  this.id = id;
58  }
59 
60  public String getZipCode() {
61  return zipCode;
62  }
63 
64  public void setZipCode(String zipCode) {
65  this.zipCode = zipCode;
66  }
67 
68  public int getCommuting() {
69  return commuting;
70  }
71 
72  public void setCommuting(int commuting) {
73  this.commuting = commuting;
74  }
75 
76  public boolean isAvailable() {
77  return available;
78  }
79 
80  public void setAvailable(boolean available) {
81  this.available = available;
82  }
83 
84  public boolean isOnline() {
85  return online;
86  }
87 
88  public void setOnline(boolean online) {
89  this.online = online;
90  }
91 
92  public Date getUpdateDate() {
93  return updateDate;
94  }
95 
96  public void setUpdateDate(Date updateDate) {
97  this.updateDate = updateDate;
98  }
99 
100  public Contact getContact() {
101  return contact;
102  }
103 
104  public void setContact(Contact contact) {
105  this.contact = contact;
106  }
107 
108 }
void setUpdateDate(Date updateDate)
Definition: JobBoard.java:96
void setId(String id)
Definition: JobBoard.java:56
void setAvailable(boolean available)
Definition: JobBoard.java:80
void setContact(Contact contact)
Definition: JobBoard.java:104
void setOnline(boolean online)
Definition: JobBoard.java:88
void setZipCode(String zipCode)
Definition: JobBoard.java:64
void setCommuting(int commuting)
Definition: JobBoard.java:72