001    /**
002     * Copyright 2010 The Kuali Foundation Licensed under the
003     * Educational Community License, Version 2.0 (the "License"); you may
004     * not use this file except in compliance with the License. You may
005     * obtain a copy of the License at
006     *
007     * http://www.osedu.org/licenses/ECL-2.0
008     *
009     * Unless required by applicable law or agreed to in writing,
010     * software distributed under the License is distributed on an "AS IS"
011     * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012     * or implied. See the License for the specific language governing
013     * permissions and limitations under the License.
014     */
015    
016    package org.kuali.student.r1.common.entity;
017    
018    import java.util.Date;
019    
020    import javax.persistence.Column;
021    import javax.persistence.Embeddable;
022    import javax.persistence.Temporal;
023    import javax.persistence.TemporalType;
024    
025    @Deprecated
026    @Embeddable
027    public class Meta {
028    
029    //      Hibernate will not allow @Version in @Embeddable for some annoying reason
030    //      @Version
031    //      private long versionInd;
032            
033    //      public long getVersionNumber() {
034    //          return versionInd;
035    //  }
036    //
037    //  public void setVersionInd(long versionInd) {
038    //          this.versionInd = versionInd;
039    //  }
040            
041            @Temporal(TemporalType.TIMESTAMP)
042            @Column(updatable=false)
043            private Date createTime;
044    
045            @Column(updatable=false)
046            private String createId;
047    
048            @Temporal(TemporalType.TIMESTAMP)
049            private Date updateTime;
050    
051            private String updateId;
052    
053            public Date getCreateTime() {
054                    return createTime;
055            }
056    
057            public void setCreateTime(Date createTime) {
058                    this.createTime = createTime;
059            }
060    
061            public String getCreateId() {
062                    return createId;
063            }
064    
065            public void setCreateId(String createId) {
066                    this.createId = createId;
067            }
068            
069            public Date getUpdateTime() {
070                    return updateTime;
071            }
072    
073            public void setUpdateTime(Date updateTime) {
074                    this.updateTime = updateTime;
075            }
076    
077            public String getUpdateId() {
078                    return updateId;
079            }
080    
081            public void setUpdateId(String updateId) {
082                    this.updateId = updateId;
083            }
084    }