View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    */
4   package gboat2.web.model;
5   
6   import java.util.Date;
7   
8   import javax.persistence.Column;
9   import javax.persistence.Entity;
10  import javax.persistence.GeneratedValue;
11  import javax.persistence.Id;
12  import javax.persistence.Table;
13  import javax.persistence.Temporal;
14  import javax.persistence.TemporalType;
15  
16  import org.hibernate.annotations.GenericGenerator;
17  
18  /**
19   * 版本定义
20   * @author liuliang
21   * @since jdk1.6
22   * @date 2013-4-22
23   */
24  @Entity
25  @Table(name = "G2_C_VERSION")
26  public class Version {
27  
28  	/** 版本id */
29  	private String versionId;
30  	
31  	/** 版本编码(产品版本号 以后可新增具体版本号:项目、产品、具体技术如json等内部版本号) */
32  	private String versionCode;
33  	
34  	//projectVersionCode、productVersionCode、jsonVersionVode;
35  	
36  	/** 版本描述 */
37  	private String versionComment;
38  	
39  	/** 版本提交时间 */
40  	private Date recordTime;
41  	
42  	/** 版本状态 0不可用  1可用 */
43  	private String dataStatus = "1";
44  
45  	 @Id
46      @GenericGenerator(name = "generator", strategy = "uuid.hex")
47      @GeneratedValue(generator = "generator")
48      @Column(name = "VERSION_ID", length = 40)
49  	public String getVersionId() {
50  		return versionId;
51  	}
52  
53  	public void setVersionId(String versionId) {
54  		this.versionId = versionId;
55  	}
56  
57  	@Column(name = "VERSION_CODE", length = 300)
58  	public String getVersionCode() {
59  		return versionCode;
60  	}
61  
62  	public void setVersionCode(String versionCode) {
63  		this.versionCode = versionCode;
64  	}
65  
66  	@Column(name = "VERSION_COMMENT", length = 3000)
67  	public String getVersionComment() {
68  		return versionComment;
69  	}
70  
71  	public void setVersionComment(String versionComment) {
72  		this.versionComment = versionComment;
73  	}
74  
75  	@Temporal(TemporalType.TIMESTAMP)
76  	@Column(name = "RECORD_TIME", length = 20)
77  	public Date getRecordTime() {
78  		return recordTime;
79  	}
80  
81  	
82  	public void setRecordTime(Date recordTime) {
83  		this.recordTime = recordTime;
84  	}
85  
86  	@Column(name = "DATA_STATUS", length = 300)
87  	public String getDataStatus() {
88  		return dataStatus;
89  	}
90  
91  	
92  	public void setDataStatus(String dataStatus) {
93  		this.dataStatus = dataStatus;
94  	}
95  
96  }