View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2012-6-19 下午02:15:04
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  import javax.persistence.Transient;
13  
14  import org.hibernate.annotations.GenericGenerator;
15  
16  /**
17   * 系统配置
18   * @author wangsr
19   * @date 2012-06-19
20   */
21  @Entity
22  @Table(name = "G2_T_SYSTEM_CONFIG")
23  public class SystemConfig {
24  
25  	/**ID*/
26  	private String systemId;
27  
28  	/**系统名称*/
29  	private String systemName;
30  
31  	/**登陆bundle*/
32  	private String loginBundleName;
33  
34  	private String indexUrl;
35  
36  	/**
37  	 * 导航模式
38  	 * 1:tree,2:twoLevel,3:mix,4:system switch
39  	 */
40  	private String navMode;
41  
42  	//web页面应用模式:( 1:传统,2:桌面)
43  	private String pageAppMode;
44  
45  	/** 主题 (保存的是themeId)*/
46  	private String defaultTheme;
47  
48  	private String icon;
49  	
50  	@Column(name = "NAV_MODE", length = 20)
51  	public String getNavMode() {
52  		return navMode;
53  	}
54  
55  	public void setNavMode(String navMode) {
56  		this.navMode = navMode;
57  	}
58  
59  	@Id
60  	@GenericGenerator(name = "generator", strategy = "uuid.hex")
61  	@GeneratedValue(generator = "generator")
62  	@Column(name = "SYSTEM_ID", length = 40)
63  	public String getSystemId() {
64  		return systemId;
65  	}
66  
67  	public void setSystemId(String systemId) {
68  		this.systemId = systemId;
69  	}
70  
71  	@Column(name = "SYSTEM_NAME", length = 200)
72  	public String getSystemName() {
73  		return systemName;
74  	}
75  
76  	public void setSystemName(String systemName) {
77  		this.systemName = systemName;
78  	}
79  
80  	@Column(name = "LOGIN_BUNDLE_NAME", length = 200)
81  	public String getLoginBundleName() {
82  		return loginBundleName;
83  	}
84  
85  	public void setLoginBundleName(String loginBundleName) {
86  		this.loginBundleName = loginBundleName;
87  	}
88  
89  	@Column(name = "INDEX_URL", length = 200)
90  	public String getIndexUrl() {
91  		return indexUrl;
92  	}
93  
94  	public void setIndexUrl(String indexUrl) {
95  		this.indexUrl = indexUrl;
96  	}
97  
98  	@Column(name = "DEFAULT_THEME", length = 200)
99  	public String getDefaultTheme() {
100 		return defaultTheme;
101 	}
102 
103 	public void setDefaultTheme(String defaultTheme) {
104 		this.defaultTheme = defaultTheme;
105 	}
106 
107 	@Column(name = "PAGE_APP_MODE", length = 2)
108 	public String getPageAppMode() {
109 		return pageAppMode;
110 	}
111 
112 	public void setPageAppMode(String pageAppMode) {
113 		this.pageAppMode = pageAppMode;
114 	}
115 
116 	@Transient
117 	public String getIcon() {
118 		return icon;
119 	}
120 
121 	
122 	public void setIcon(String icon) {
123 		this.icon = icon;
124 	}
125 }