View Javadoc

1   /**
2    * Copyright 2010 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.student.common_test_tester.support;
17  
18  import java.util.Date;
19  
20  import javax.persistence.Entity;
21  import javax.persistence.Id;
22  import javax.persistence.PrePersist;
23  import javax.persistence.Temporal;
24  import javax.persistence.TemporalType;
25  
26  import org.kuali.student.common.test.spring.Idable;
27  import org.kuali.student.common.util.UUIDHelper;
28  
29  @Deprecated
30  @Entity
31  public class Value implements Idable{
32  	@Id
33  	private String id;
34  
35  	private String value;
36  
37  	@Temporal(TemporalType.TIMESTAMP)
38  	private Date createDate;
39  	
40  	/**
41  	 * AutoGenerate the Id
42  	 */
43  	@PrePersist
44  	public void prePersist() {
45  		this.id = UUIDHelper.genStringUUID(this.id);
46  	}
47  
48  	/**
49  	 * 
50  	 */
51  	public Value() {
52  		super();
53  	}
54  
55  	/**
56  	 * @param value
57  	 */
58  	public Value(String value) {
59  		super();
60  		this.value = value;
61  	}
62  
63  	/**
64  	 * @return the id
65  	 */
66  	public String getId() {
67  		return id;
68  	}
69  
70  	/**
71  	 * @param id
72  	 *            the id to set
73  	 */
74  	public void setId(String id) {
75  		this.id = id;
76  	}
77  
78  	/**
79  	 * @return the value
80  	 */
81  	public String getValue() {
82  		return value;
83  	}
84  
85  	/**
86  	 * @param value
87  	 *            the value to set
88  	 */
89  	public void setValue(String value) {
90  		this.value = value;
91  	}
92  
93  
94  	public Date getCreateDate() {
95  		return createDate;
96  	}
97  
98  	public void setCreateDate(Date createDate) {
99  		this.createDate = createDate;
100 	}
101 }