rave-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ja...@apache.org
Subject svn commit: r1204840 - /incubator/rave/trunk/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/WidgetComment.java
Date Tue, 22 Nov 2011 07:45:20 GMT
Author: jasha
Date: Tue Nov 22 07:45:20 2011
New Revision: 1204840

URL: http://svn.apache.org/viewvc?rev=1204840&view=rev
Log:
RAVE-334 comment can be longer than 255 chars

Modified:
    incubator/rave/trunk/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/WidgetComment.java

Modified: incubator/rave/trunk/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/WidgetComment.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/WidgetComment.java?rev=1204840&r1=1204839&r2=1204840&view=diff
==============================================================================
--- incubator/rave/trunk/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/WidgetComment.java
(original)
+++ incubator/rave/trunk/rave-components/rave-core/src/main/java/org/apache/rave/portal/model/WidgetComment.java
Tue Nov 22 07:45:20 2011
@@ -15,8 +15,8 @@
  */
 package org.apache.rave.portal.model;
 
-import java.io.Serializable;
-import java.util.Date;
+import org.apache.rave.persistence.BasicEntity;
+
 import javax.persistence.Basic;
 import javax.persistence.Column;
 import javax.persistence.Entity;
@@ -25,12 +25,14 @@ import javax.persistence.GeneratedValue;
 import javax.persistence.GenerationType;
 import javax.persistence.Id;
 import javax.persistence.JoinColumn;
+import javax.persistence.Lob;
 import javax.persistence.OneToOne;
 import javax.persistence.Table;
 import javax.persistence.TableGenerator;
 import javax.persistence.Temporal;
 import javax.xml.bind.annotation.XmlRootElement;
-import org.apache.rave.persistence.BasicEntity;
+import java.io.Serializable;
+import java.util.Date;
 
 /**
  * A comment for a widget.
@@ -60,7 +62,7 @@ public class WidgetComment implements Ba
     private User user;
 
     @Basic
-    @Column(name = "text")
+    @Column(name = "text") @Lob
     private String text;
 
     @Basic
@@ -103,14 +105,6 @@ public class WidgetComment implements Ba
     public void setWidgetId(Long widgetId) {
         this.widgetId = widgetId;
     }
-    /*
-    public Long getUserId() {
-        return userId;
-    }
-
-    public void setUserId(Long userId) {
-        this.userId = userId;
-    }*/
 
     public User getUser() {
         return user;



Mime
View raw message