BrightSide Workbench Full Report + Source Code
AffiliateSite.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2011 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 package org.turro.contacts;
19 
20 import java.net.URL;
21 import javax.persistence.Column;
22 import javax.persistence.Entity;
23 import javax.persistence.GeneratedValue;
24 import javax.persistence.Id;
25 import javax.persistence.JoinColumn;
26 import javax.persistence.ManyToOne;
27 
32 @Entity
33 @org.hibernate.annotations.GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
34 public class AffiliateSite implements java.io.Serializable {
35 
36  @Id
37  @GeneratedValue(generator = "hibernate-uuid")
38  @Column(name="IDENTIFIER")
39  private String id;
40 
41  private URL site;
42 
43  private String siteUser, sitePassword;
44 
45  @ManyToOne
46  @JoinColumn(name="CONTACT_FK")
47  private org.turro.contacts.Contact contact;
48 
49  public Contact getContact() {
50  return contact;
51  }
52 
53  public void setContact(Contact contact) {
54  this.contact = contact;
55  }
56 
57  public String getId() {
58  return id;
59  }
60 
61  public void setId(String id) {
62  this.id = id;
63  }
64 
65  public URL getSite() {
66  return site;
67  }
68 
69  public void setSite(URL site) {
70  this.site = site;
71  }
72 
73  public String getSitePassword() {
74  return sitePassword;
75  }
76 
77  public void setSitePassword(String sitePassword) {
78  this.sitePassword = sitePassword;
79  }
80 
81  public String getSiteUser() {
82  return siteUser;
83  }
84 
85  public void setSiteUser(String siteUser) {
86  this.siteUser = siteUser;
87  }
88 
89 }
void setContact(Contact contact)
void setSitePassword(String sitePassword)
void setSiteUser(String siteUser)