View Javadoc
1   /**
2    * Copyright 2011 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  
16  package org.kuali.mobility.feedback.entity;
17  
18  import java.io.Serializable;
19  import java.sql.Timestamp;
20  
21  import javax.persistence.Column;
22  import javax.persistence.Entity;
23  import javax.persistence.GeneratedValue;
24  import javax.persistence.GenerationType;
25  import javax.persistence.Id;
26  import javax.persistence.Table;
27  import javax.persistence.Version;
28  
29  @Entity
30  @Table(name="KME_FDBCK_SBJCT_T")
31  public class FeedbackSubject implements Serializable {
32  
33  	private static final long serialVersionUID = 7273789153652061369L;
34  
35  	@Id
36  	@GeneratedValue(strategy = GenerationType.TABLE)
37      @Column(name="ID")
38      private Long feedbackSubjectId;
39  
40      @Column(name="SUB_KEY")
41      private String subjectKey;
42      
43      @Column(name="SUB_VAL")
44      private String subjectValue;
45  
46      @Version
47      @Column(name="VER_NBR")
48      protected Long versionNumber;
49      
50      public FeedbackSubject() {}
51  
52      	
53  	/**
54  	 * @return the feedbackSubjectId
55  	 */
56  	public Long getFeedbackSubjectId() {
57  		return feedbackSubjectId;
58  	}
59  
60  
61  	/**
62  	 * @param feedbackSubjectId the feedbackSubjectId to set
63  	 */
64  	public void setFeedbackSubjectId(Long feedbackSubjectId) {
65  		this.feedbackSubjectId = feedbackSubjectId;
66  	}
67  
68  	/**
69  	 * @return the subjectKey
70  	 */
71  	public String getSubjectKey() {
72  		return subjectKey;
73  	}
74  
75  
76  	/**
77  	 * @param subjectKey the subjectKey to set
78  	 */
79  	public void setSubjectKey(String subjectKey) {
80  		this.subjectKey = subjectKey;
81  	}
82  
83  
84  	/**
85  	 * @return the subjectValue
86  	 */
87  	public String getSubjectValue() {
88  		return subjectValue;
89  	}
90  
91  
92  	/**
93  	 * @param subjectValue the subjectValue to set
94  	 */
95  	public void setSubjectValue(String subjectValue) {
96  		this.subjectValue = subjectValue;
97  	}
98  
99  
100 	/**
101 	 * @return the versionNumber
102 	 */
103 	public Long getVersionNumber() {
104 		return versionNumber;
105 	}
106 
107 
108 	/**
109 	 * @param versionNumber the versionNumber to set
110 	 */
111 	public void setVersionNumber(Long versionNumber) {
112 		this.versionNumber = versionNumber;
113 	}
114 
115 
116 	/**
117 	 * @return the serialversionuid
118 	 */
119 	public static long getSerialversionuid() {
120 		return serialVersionUID;
121 	}
122 
123 
124 	@Override
125 	public String toString() {
126         String newline = "\r\n";
127 
128         StringBuilder sb = new StringBuilder();
129         sb.append("Subject Key: ");
130         sb.append(this.getSubjectKey());
131         sb.append(newline);
132         sb.append("Subject Value: ");
133         sb.append(this.getSubjectValue());
134         sb.append(newline);
135         sb.append(newline);
136                 return sb.toString();
137     }
138 }