View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2013-9-11 下午02:16:48
4    */
5   package gboat2.base.core.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   * 
17   * 平台级参数
18   * @author zhangxj-a
19   * @since jdk1.6
20   * @date 2013-9-11
21   *  
22   */
23  @Entity
24  @Table(name = "G2_T_PARAMETER")
25  public class Parameter {
26  
27  	/**主键 */
28  	private String id;
29  	
30  	/**组名 */
31  	private String groupName;
32  	
33  	/**参数code */
34  	private String code;
35  	
36  	/**参数名称 */
37  	private String name;
38  	
39  	/**参数值 */
40  	private String value;
41  	
42  	/**描述信息 */
43  	private String desc;
44  	
45  	
46  	@Id
47  	@GeneratedValue(generator = "generator")
48  	@GenericGenerator(name = "generator", strategy = "uuid.hex")
49  	@Column(name = "P_ID", unique = true, nullable = false, length = 40)
50  	public String getId() {
51  		return id;
52  	}
53  
54  	public void setId(String id) {
55  		this.id = id;
56  	}
57  
58  	@Column(name = "GROUP_NAME", length = 300)
59  	public String getGroupName() {
60  		return groupName;
61  	}
62  
63  	public void setGroupName(String groupName) {
64  		this.groupName = groupName;
65  	}
66  
67  	@Column(name = "NAME", length = 300)
68  	public String getName() {
69  		return name;
70  	}
71  
72  	
73  	public void setName(String name) {
74  		this.name = name;
75  	}
76  
77  	@Column(name = "VALUE", length = 300)
78  	public String getValue() {
79  		return value;
80  	}
81  
82  	public void setValue(String value) {
83  		this.value = value;
84  	}
85  
86  	@Column(name = "DESCRIPTION", length = 600)
87  	public String getDesc() {
88  		return desc;
89  	}
90  
91  	public void setDesc(String desc) {
92  		this.desc = desc;
93  	}
94  
95  	@Column(name = "CODE", length = 300)
96  	public String getCode() {
97  		return code;
98  	}
99  
100 	public void setCode(String code) {
101 		this.code = code;
102 	}
103 }