1
2
3
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
18
19
20
21 @Entity
22 @Table(name = "G2_T_PROFILE")
23 public class Profile {
24
25
26 private String profileId;
27
28
29 private String userId;
30
31
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 }