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.r1.common.entity;
17  
18  import java.util.Date;
19  
20  import javax.persistence.Column;
21  import javax.persistence.Embeddable;
22  import javax.persistence.Temporal;
23  import javax.persistence.TemporalType;
24  
25  @Deprecated
26  @Embeddable
27  public class Meta {
28  
29  //	Hibernate will not allow @Version in @Embeddable for some annoying reason
30  //	@Version
31  //	private long versionInd;
32  	
33  //	public long getVersionNumber() {
34  //	    return versionInd;
35  //  }
36  //
37  //  public void setVersionInd(long versionInd) {
38  //	    this.versionInd = versionInd;
39  //  }
40  	
41  	@Temporal(TemporalType.TIMESTAMP)
42  	@Column(updatable=false)
43  	private Date createTime;
44  
45  	@Column(updatable=false)
46  	private String createId;
47  
48  	@Temporal(TemporalType.TIMESTAMP)
49  	private Date updateTime;
50  
51  	private String updateId;
52  
53  	public Date getCreateTime() {
54  		return createTime;
55  	}
56  
57  	public void setCreateTime(Date createTime) {
58  		this.createTime = createTime;
59  	}
60  
61  	public String getCreateId() {
62  		return createId;
63  	}
64  
65  	public void setCreateId(String createId) {
66  		this.createId = createId;
67  	}
68  	
69  	public Date getUpdateTime() {
70  		return updateTime;
71  	}
72  
73  	public void setUpdateTime(Date updateTime) {
74  		this.updateTime = updateTime;
75  	}
76  
77  	public String getUpdateId() {
78  		return updateId;
79  	}
80  
81  	public void setUpdateId(String updateId) {
82  		this.updateId = updateId;
83  	}
84  }