Author: alevkovsky
Date: 2009-03-04 09:58:43 -0500 (Wed, 04 Mar 2009)
New Revision: 12824
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/Shelf.java
trunk/test-applications/realworld2/ejb/src/main/resources/import.sql
Log:
Realworld: apply new design for shell tree, add new navigation for tree, add localization,
adjust shelf and album preview pages
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/Shelf.java
===================================================================
---
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/Shelf.java 2009-03-04
13:27:27 UTC (rev 12823)
+++
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/Shelf.java 2009-03-04
14:58:43 UTC (rev 12824)
@@ -2,6 +2,7 @@
import java.io.Serializable;
import java.util.ArrayList;
+import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
@@ -16,6 +17,8 @@
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
import org.hibernate.validator.Length;
import org.hibernate.validator.NotEmpty;
@@ -53,6 +56,9 @@
@org.hibernate.annotations.OrderBy(clause = "NAME asc")
private List<Album> childAlbums = new ArrayList<Album>();
+ @Temporal(TemporalType.TIMESTAMP)
+ private Date created;
+
/**
* Getter for property id
*
@@ -143,4 +149,18 @@
return result;
}
+
+ /**
+ * @return the created
+ */
+ public Date getCreated() {
+ return created;
+ }
+
+ /**
+ * @param created the created to set
+ */
+ public void setCreated(Date created) {
+ this.created = created;
+ }
}
Modified: trunk/test-applications/realworld2/ejb/src/main/resources/import.sql
===================================================================
--- trunk/test-applications/realworld2/ejb/src/main/resources/import.sql 2009-03-04
13:27:27 UTC (rev 12823)
+++ trunk/test-applications/realworld2/ejb/src/main/resources/import.sql 2009-03-04
14:58:43 UTC (rev 12824)
@@ -2,10 +2,10 @@
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);
-INSERT INTO shelfs(shelf_id, name, description, shelf_user_id) VALUES (3,
'Water', 'Nature pictures', 2);
-INSERT INTO shelfs(shelf_id, name, description, shelf_user_id) VALUES (4,
'Flowers', 'Nature pictures', 3);
+INSERT INTO shelfs(shelf_id, name, description, shelf_user_id, created) VALUES (1,
'Nature', 'Nature pictures', 1, '2008-12-18');
+INSERT INTO shelfs(shelf_id, name, description, shelf_user_id, created) VALUES (2,
'Sport', 'Nature pictures', 1, '2008-12-18');
+INSERT INTO shelfs(shelf_id, name, description, shelf_user_id, created) VALUES (3,
'Water', 'Nature pictures', 2, '2008-12-18');
+INSERT INTO shelfs(shelf_id, name, description, shelf_user_id, created) VALUES (4,
'Flowers', 'Nature pictures', 3, '2008-12-18');
INSERT INTO albums(album_id, name, description, shared, album_user_id, parent_shelf_id,
created) VALUES (15, 'Water', 'Rivers pictures', true, 2, 3,
'2008-12-18');