Author: andrei_exadel
Date: 2009-03-05 09:36:26 -0500 (Thu, 05 Mar 2009)
New Revision: 12842
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java
Log:
add avatar property
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-03-05
14:34:46 UTC (rev 12841)
+++
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/domain/User.java 2009-03-05
14:36:26 UTC (rev 12842)
@@ -135,8 +135,10 @@
private Boolean doNotShowMail;
- private Boolean informAboutNews;
+ private Boolean informAboutNews;
+ private Boolean hasAvatar;
+
@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")
@@ -322,6 +324,14 @@
public void setInformAboutNews(Boolean informAboutNews) {
this.informAboutNews = informAboutNews;
}
+
+ public Boolean getHasAvatar() {
+ return hasAvatar;
+ }
+
+ public void setHasAvatar(Boolean hasAvatar) {
+ this.hasAvatar = hasAvatar;
+ }
public List<Album> getAllAlbums(){
List<Album> albums = new ArrayList<Album>();
Show replies by date