View Javadoc
1   /**
2    * Copyright (c) 2009-2010 by Glodon
3    * All rights reserved.
4    */
5   package gboat2.web.model;
6   
7   import javax.persistence.Column;
8   import javax.persistence.Entity;
9   import javax.persistence.GeneratedValue;
10  import javax.persistence.Id;
11  import javax.persistence.Table;
12  
13  import org.hibernate.annotations.GenericGenerator;
14  
15  /**
16   * @author lysming
17   *
18   */
19  @Entity
20  @Table(name="G2_T_DATA_LEVEL")
21  public class DataLevel {
22  	private String levelId;
23  	//级别名称
24  	private String levelName;
25  	//级别编码
26  	private String levelCode;
27  	//描述
28  	private String description;
29  
30  	@Id
31  	@GenericGenerator(name = "generator", strategy = "uuid.hex")
32  	@GeneratedValue(generator = "generator")
33  	@Column(name = "LEVEL_ID", length = 40)
34  	public String getLevelId() {
35  		return levelId;
36  	}
37  
38  	public void setLevelId(String levelId) {
39  		this.levelId = levelId;
40  	}
41  
42  	@Column(name = "LEVEL_NAME", length = 40)
43  	public String getLevelName() {
44  		return levelName;
45  	}
46  
47  	public void setLevelName(String levelName) {
48  		this.levelName = levelName;
49  	}
50  
51  	@Column(name = "LEVEL_CODE", length = 40)
52  	public String getLevelCode() {
53  		return levelCode;
54  	}
55  
56  	public void setLevelCode(String levelCode) {
57  		this.levelCode = levelCode;
58  	}
59  
60  	@Column(name = "DESCRIPTION", length = 500)
61      public String getDescription() {
62      	return description;
63      }
64  
65      public void setDescription(String description) {
66      	this.description = description;
67      }
68  }