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