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   * 用户桌面信息 
17   * @author 赵晓春 
18   * 2010-6-5
19   * @modified tanxw 2012-8-15
20   */
21  @Entity
22  @Table(name = "G2_T_PROFILE")
23  public class Profile {
24  
25  	//编号
26  	private String profileId;
27  
28  	//用户Id
29  	private String userId;
30  
31  	//web页面应用模式:( 1:传统,2:桌面)
32  	private String pageAppMode;
33  	
34  	//壁纸
35  	private String wallPaper;
36  	
37  	//主题
38  	private String theme;
39  	
40  	//壁纸显示时是否拉伸
41  	private String stretch;
42  
43  	@Id
44  	@GenericGenerator(name = "generator", strategy = "uuid.hex")
45  	@GeneratedValue(generator = "generator")
46  	@Column(name = "PROFILE_ID", length = 40)
47  	public String getProfileId() {
48  		return profileId;
49  	}
50  
51  	public void setProfileId(String profileId) {
52  		this.profileId = profileId;
53  	}
54  
55  	@Column(name = "USER_ID", length = 40)
56  	public String getUserId() {
57  		return userId;
58  	}
59  
60  	public void setUserId(String userId) {
61  		this.userId = userId;
62  	}
63  
64  	@Column(name = "PAGE_APP_MODE", length = 2)
65      public String getPageAppMode() {
66      	return pageAppMode;
67      }
68  
69  	
70      public void setPageAppMode(String pageAppMode) {
71      	this.pageAppMode = pageAppMode;
72      }
73  
74      @Column(name = "WALLPAPER", length = 100)
75      public String getWallPaper() {
76      	return wallPaper;
77      }
78  
79  	
80      public void setWallPaper(String wallPaper) {
81      	this.wallPaper = wallPaper;
82      }
83  
84      @Column(name = "THEME", length = 50)
85      public String getTheme() {
86      	return theme;
87      }
88  
89  	
90      public void setTheme(String theme) {
91      	this.theme = theme;
92      }
93  
94      @Column(name = "STRETCH", length = 2)
95      public String getStretch() {
96      	return stretch;
97      }
98  
99  	
100     public void setStretch(String stretch) {
101     	this.stretch = stretch;
102     }
103 
104 }