[seam-commits] Seam SVN: r14626 - branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-ejb/src/main/java/com/jboss/dvd/seam.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Apr 20 10:03:25 EDT 2012


Author: maschmid
Date: 2012-04-20 10:03:25 -0400 (Fri, 20 Apr 2012)
New Revision: 14626

Modified:
   branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-ejb/src/main/java/com/jboss/dvd/seam/Product.java
Log:
forgot to include this file in my previous commit, use actual bean validation annotations, as nullable column behavior isn't specified wrt bean validation.


Modified: branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-ejb/src/main/java/com/jboss/dvd/seam/Product.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-ejb/src/main/java/com/jboss/dvd/seam/Product.java	2012-04-20 13:58:06 UTC (rev 14625)
+++ branches/community/Seam_2_3/examples-ee6/dvdstore/dvdstore-ejb/src/main/java/com/jboss/dvd/seam/Product.java	2012-04-20 14:03:25 UTC (rev 14626)
@@ -22,6 +22,7 @@
 import javax.persistence.ManyToMany;
 import javax.persistence.OneToOne;
 import javax.persistence.Table;
+import javax.validation.constraints.NotNull;
 
 import org.apache.solr.analysis.LowerCaseFilterFactory;
 import org.apache.solr.analysis.NGramFilterFactory;
@@ -114,6 +115,7 @@
         this.categories = categories;
     }
     
+    @NotNull
     @Column(name="TITLE",nullable=false,length=100)
     @Fields({
        @Field(index=Index.YES),
@@ -146,6 +148,7 @@
         this.imageURL = imageURL;
     }
 
+    @NotNull
     @Column(name="PRICE",nullable=false,precision=12,scale=2)
     public BigDecimal getPrice() {
         return price;
@@ -153,4 +156,5 @@
     public void setPrice(BigDecimal price) {
         this.price=price;
     }
+
 }



More information about the seam-commits mailing list