Source Code Cross Referenced for User.java in  » Database-ORM » ebean » app » data » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » ebean » app.data 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package app.data;
002:
003:        import java.sql.Timestamp;
004:        import java.util.List;
005:
006:        import javax.persistence.Column;
007:        import javax.persistence.Entity;
008:        import javax.persistence.Id;
009:        import javax.persistence.JoinColumn;
010:        import javax.persistence.ManyToMany;
011:        import javax.persistence.OneToMany;
012:        import javax.persistence.Table;
013:        import javax.persistence.Version;
014:
015:        /**
016:         * User entity bean.
017:         */
018:        @Entity
019:        @Table(name="s_user")
020:        public class User {
021:
022:            @Id
023:            Integer id;
024:
025:            String email;
026:
027:            String name;
028:
029:            String pwd;
030:
031:            String salt;
032:
033:            Timestamp lastLogin;
034:
035:            String cookieLogin;
036:
037:            Integer errorCount;
038:
039:            String resetCode;
040:
041:            Timestamp resetTime;
042:
043:            Timestamp cretime;
044:
045:            @Version
046:            Timestamp updtime;
047:
048:            @Column(name="status_code")
049:            UserStatus status;
050:
051:            @OneToMany(mappedBy="userAssigned")
052:            @JoinColumn(name="user_assigned_id")
053:            List<Bug> assignedBugs;
054:
055:            @OneToMany
056:            List<Topic> topics;
057:
058:            @OneToMany
059:            List<BugDetail> details;
060:
061:            @OneToMany
062:            @JoinColumn(name="user_logged_id")
063:            List<Bug> loggedBugs;
064:
065:            @ManyToMany
066:            List<Role> roles;
067:
068:            @OneToMany
069:            List<Comment> comments;
070:
071:            @OneToMany
072:            List<TopicPost> posts;
073:
074:            /**
075:             * Return id.
076:             */
077:            public Integer getId() {
078:                return id;
079:            }
080:
081:            /**
082:             * Set id.
083:             */
084:            public void setId(Integer id) {
085:                this .id = id;
086:            }
087:
088:            /**
089:             * Return email.
090:             */
091:            public String getEmail() {
092:                return email;
093:            }
094:
095:            /**
096:             * Set email.
097:             */
098:            public void setEmail(String email) {
099:                this .email = email;
100:            }
101:
102:            /**
103:             * Return name.
104:             */
105:            public String getName() {
106:                return name;
107:            }
108:
109:            /**
110:             * Set name.
111:             */
112:            public void setName(String name) {
113:                this .name = name;
114:            }
115:
116:            /**
117:             * Return pwd.
118:             */
119:            public String getPwd() {
120:                return pwd;
121:            }
122:
123:            /**
124:             * Set pwd.
125:             */
126:            public void setPwd(String pwd) {
127:                this .pwd = pwd;
128:            }
129:
130:            /**
131:             * Return salt.
132:             */
133:            public String getSalt() {
134:                return salt;
135:            }
136:
137:            /**
138:             * Set salt.
139:             */
140:            public void setSalt(String salt) {
141:                this .salt = salt;
142:            }
143:
144:            /**
145:             * Return last login.
146:             */
147:            public Timestamp getLastLogin() {
148:                return lastLogin;
149:            }
150:
151:            /**
152:             * Set last login.
153:             */
154:            public void setLastLogin(Timestamp lastLogin) {
155:                this .lastLogin = lastLogin;
156:            }
157:
158:            /**
159:             * Return cookie login.
160:             */
161:            public String getCookieLogin() {
162:                return cookieLogin;
163:            }
164:
165:            /**
166:             * Set cookie login.
167:             */
168:            public void setCookieLogin(String cookieLogin) {
169:                this .cookieLogin = cookieLogin;
170:            }
171:
172:            /**
173:             * Return error count.
174:             */
175:            public Integer getErrorCount() {
176:                return errorCount;
177:            }
178:
179:            /**
180:             * Set error count.
181:             */
182:            public void setErrorCount(Integer errorCount) {
183:                this .errorCount = errorCount;
184:            }
185:
186:            /**
187:             * Return reset code.
188:             */
189:            public String getResetCode() {
190:                return resetCode;
191:            }
192:
193:            /**
194:             * Set reset code.
195:             */
196:            public void setResetCode(String resetCode) {
197:                this .resetCode = resetCode;
198:            }
199:
200:            /**
201:             * Return reset time.
202:             */
203:            public Timestamp getResetTime() {
204:                return resetTime;
205:            }
206:
207:            /**
208:             * Set reset time.
209:             */
210:            public void setResetTime(Timestamp resetTime) {
211:                this .resetTime = resetTime;
212:            }
213:
214:            /**
215:             * Return cretime.
216:             */
217:            public Timestamp getCretime() {
218:                return cretime;
219:            }
220:
221:            /**
222:             * Set cretime.
223:             */
224:            public void setCretime(Timestamp cretime) {
225:                this .cretime = cretime;
226:            }
227:
228:            /**
229:             * Return updtime.
230:             */
231:            public Timestamp getUpdtime() {
232:                return updtime;
233:            }
234:
235:            /**
236:             * Set updtime.
237:             */
238:            public void setUpdtime(Timestamp updtime) {
239:                this .updtime = updtime;
240:            }
241:
242:            /**
243:             * Return status.
244:             */
245:            public UserStatus getStatus() {
246:                return status;
247:            }
248:
249:            /**
250:             * Set status.
251:             */
252:            public void setStatus(UserStatus status) {
253:                this .status = status;
254:            }
255:
256:            /**
257:             * Return assigned bugs.
258:             */
259:            public List<Bug> getAssignedBugs() {
260:                return assignedBugs;
261:            }
262:
263:            /**
264:             * Set assigned bugs.
265:             */
266:            public void setAssignedBugs(List<Bug> assignedBugs) {
267:                this .assignedBugs = assignedBugs;
268:            }
269:
270:            /**
271:             * Return topics.
272:             */
273:            public List<Topic> getTopics() {
274:                return topics;
275:            }
276:
277:            /**
278:             * Set topics.
279:             */
280:            public void setTopics(List<Topic> topics) {
281:                this .topics = topics;
282:            }
283:
284:            /**
285:             * Return details.
286:             */
287:            public List<BugDetail> getDetails() {
288:                return details;
289:            }
290:
291:            /**
292:             * Set details.
293:             */
294:            public void setDetails(List<BugDetail> details) {
295:                this .details = details;
296:            }
297:
298:            /**
299:             * Return logged bugs.
300:             */
301:            public List<Bug> getLoggedBugs() {
302:                return loggedBugs;
303:            }
304:
305:            /**
306:             * Set logged bugs.
307:             */
308:            public void setLoggedBugs(List<Bug> loggedBugs) {
309:                this .loggedBugs = loggedBugs;
310:            }
311:
312:            /**
313:             * Return roles.
314:             */
315:            public List<Role> getRoles() {
316:                return roles;
317:            }
318:
319:            /**
320:             * Set roles.
321:             */
322:            public void setRoles(List<Role> roles) {
323:                this .roles = roles;
324:            }
325:
326:            /**
327:             * Return comments.
328:             */
329:            public List<Comment> getComments() {
330:                return comments;
331:            }
332:
333:            /**
334:             * Set comments.
335:             */
336:            public void setComments(List<Comment> comments) {
337:                this .comments = comments;
338:            }
339:
340:            /**
341:             * Return posts.
342:             */
343:            public List<TopicPost> getPosts() {
344:                return posts;
345:            }
346:
347:            /**
348:             * Set posts.
349:             */
350:            public void setPosts(List<TopicPost> posts) {
351:                this.posts = posts;
352:            }
353:
354:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.