Author: andrei_exadel
Date: 2009-02-26 10:40:10 -0500 (Thu, 26 Feb 2009)
New Revision: 12760
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java
trunk/test-applications/realworld2/ejb/src/main/resources/import.sql
Log:
Userprefs
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java
===================================================================
---
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java 2009-02-26
15:40:02 UTC (rev 12759)
+++
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java 2009-02-26
15:40:10 UTC (rev 12760)
@@ -130,10 +130,13 @@
@Temporal(TemporalType.TIMESTAMP)
private Date birthDate;
- @NotEmpty
@NotNull
private Sex sex;
+ private Boolean doNotShowMail;
+
+ private Boolean informAboutNews;
+
@OneToMany(mappedBy = "owner", cascade = { CascadeType.ALL}, fetch =
FetchType.LAZY)
@org.hibernate.annotations.LazyCollection(org.hibernate.annotations.LazyCollectionOption.EXTRA)
@org.hibernate.annotations.OrderBy(clause = "NAME asc")
@@ -298,6 +301,23 @@
public void setSex(Sex sex) {
this.sex = sex;
}
+
+ public Boolean getDoNotShowMail() {
+ return doNotShowMail;
+ }
+
+ public void setDoNotShowMail(Boolean doNotShowMail) {
+ this.doNotShowMail = doNotShowMail;
+ }
+
+ public Boolean getInformAboutNews() {
+ return informAboutNews;
+ }
+
+ public void setInformAboutNews(Boolean informAboutNews) {
+ this.informAboutNews = informAboutNews;
+ }
+
}
\ No newline at end of file
Modified: trunk/test-applications/realworld2/ejb/src/main/resources/import.sql
===================================================================
--- trunk/test-applications/realworld2/ejb/src/main/resources/import.sql 2009-02-26
15:40:02 UTC (rev 12759)
+++ trunk/test-applications/realworld2/ejb/src/main/resources/import.sql 2009-02-26
15:40:10 UTC (rev 12760)
@@ -1,6 +1,6 @@
-INSERT INTO Users(user_id, firstname, secondname, email, login, passwordHash, birthdate,
sex) VALUES (1, 'Andrey', 'Markhel', 'amarkhel(a)exadel.com',
'amarkhel', '8cb2237d0679ca88db6464eac60da96345513964',
'1985-01-08', 1);
-INSERT INTO Users(user_id, firstname, secondname, email, login, passwordHash, birthdate,
sex) VALUES (2, 'Nick', 'Curtis', 'nkurtis(a)iba.com',
'Viking', '8cb2237d0679ca88db6464eac60da96345513964',
'1978-01-08', 1);
-INSERT INTO Users(user_id, firstname, secondname, email, login, passwordHash, birthdate,
sex) VALUES (3, 'John', 'Smith', 'jsmith(a)jboss.com',
'Noname', '8cb2237d0679ca88db6464eac60da96345513964',
'1970-01-08', 1);
+INSERT INTO Users(user_id, firstname, secondname, email, login, passwordHash, birthdate,
sex, doNotShowMail, informAboutNews) VALUES (1, 'Andrey', 'Markhel',
'amarkhel(a)exadel.com', 'amarkhel',
'8cb2237d0679ca88db6464eac60da96345513964', '1985-01-08', 1, 1, 1);
+INSERT INTO Users(user_id, firstname, secondname, email, login, passwordHash, birthdate,
sex, doNotShowMail, informAboutNews) VALUES (2, 'Nick', 'Curtis',
'nkurtis(a)iba.com', 'Viking',
'8cb2237d0679ca88db6464eac60da96345513964', '1978-01-08', 1, 1, 1);
+INSERT INTO Users(user_id, firstname, secondname, email, login, passwordHash, birthdate,
sex, doNotShowMail, informAboutNews) VALUES (3, 'John', 'Smith',
'jsmith(a)jboss.com', 'Noname',
'8cb2237d0679ca88db6464eac60da96345513964', '1970-01-08', 1, 1, 1);
INSERT INTO shelfs(shelf_id, name, description, shelf_user_id) VALUES (1,
'Nature', 'Nature pictures', 1);
INSERT INTO shelfs(shelf_id, name, description, shelf_user_id) VALUES (2,
'Sport', 'Nature pictures', 1);