[jboss-cvs] jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam ...
Norman Richards
norman.richards at jboss.com
Tue Oct 16 15:19:22 EDT 2007
User: nrichards
Date: 07/10/16 15:19:22
Modified: examples/dvdstore/src/com/jboss/dvd/seam
AcceptAction.java Actor.java Admin.java
Category.java CheckoutAction.java Customer.java
FullTextSearchAction.java IndexerAction.java
InsufficientQuantityException.java Inventory.java
OrderLine.java Product.java ShoppingCart.java
ShoppingCartBean.java ShowOrdersAction.java
StoreManagerBean.java
Log:
fix warnings
Revision Changes Path
1.18 +2 -0 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/AcceptAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AcceptAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/AcceptAction.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- AcceptAction.java 25 Jun 2007 23:13:51 -0000 1.17
+++ AcceptAction.java 16 Oct 2007 19:19:22 -0000 1.18
@@ -26,6 +26,8 @@
implements Accept,
Serializable
{
+ private static final long serialVersionUID = -4439813828608177846L;
+
@In(value="currentUser")
Admin admin;
1.4 +2 -0 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Actor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Actor.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Actor.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- Actor.java 23 Jun 2007 22:04:52 -0000 1.3
+++ Actor.java 16 Oct 2007 19:19:22 -0000 1.4
@@ -25,6 +25,8 @@
public class Actor
implements Serializable
{
+ private static final long serialVersionUID = 8176964737283403683L;
+
long id;
String name;
1.10 +9 -6 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Admin.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Admin.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Admin.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- Admin.java 19 Jun 2007 20:54:23 -0000 1.9
+++ Admin.java 16 Oct 2007 19:19:22 -0000 1.10
@@ -18,6 +18,9 @@
extends User
implements Serializable
{
+
+ private static final long serialVersionUID = 2548491885863399995L;
+
@Transient
@Override
public boolean isAdmin() {
1.9 +1 -0 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Category.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Category.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Category.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- Category.java 23 Jun 2007 22:04:52 -0000 1.8
+++ Category.java 16 Oct 2007 19:19:22 -0000 1.9
@@ -28,6 +28,7 @@
public class Category
implements Serializable
{
+ private static final long serialVersionUID = 5544598397835376242L;
int id;
String name;
1.12 +2 -0 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/CheckoutAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CheckoutAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/CheckoutAction.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- CheckoutAction.java 17 Sep 2007 20:58:13 -0000 1.11
+++ CheckoutAction.java 16 Oct 2007 19:19:22 -0000 1.12
@@ -35,6 +35,8 @@
implements Checkout,
Serializable
{
+ private static final long serialVersionUID = -4651884454184474207L;
+
@PersistenceContext(type=PersistenceContextType.EXTENDED)
EntityManager em;
1.14 +2 -0 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Customer.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Customer.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Customer.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- Customer.java 21 Nov 2006 03:20:31 -0000 1.13
+++ Customer.java 16 Oct 2007 19:19:22 -0000 1.14
@@ -20,6 +20,8 @@
extends User
implements Serializable
{
+ private static final long serialVersionUID = 5699525147178760355L;
+
public static String[] cctypes = {"MasterCard", "Visa", "Discover", "Amex", "Dell Preferred"};
String address1;
1.7 +2 -1 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/FullTextSearchAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: FullTextSearchAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/FullTextSearchAction.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- FullTextSearchAction.java 6 Sep 2007 18:05:30 -0000 1.6
+++ FullTextSearchAction.java 16 Oct 2007 19:19:22 -0000 1.7
@@ -1,4 +1,4 @@
-//$Id: FullTextSearchAction.java,v 1.6 2007/09/06 18:05:30 ebernard Exp $
+//$Id: FullTextSearchAction.java,v 1.7 2007/10/16 19:19:22 nrichards Exp $
package com.jboss.dvd.seam;
import java.io.Serializable;
@@ -121,6 +121,7 @@
return ( searchResults != null ) && ( currentPage == 0 );
}
+ @SuppressWarnings("unchecked")
private void updateResults() {
FullTextQuery query;
try {
1.2 +5 -3 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/IndexerAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: IndexerAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/IndexerAction.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- IndexerAction.java 23 Jun 2007 22:04:52 -0000 1.1
+++ IndexerAction.java 16 Oct 2007 19:19:22 -0000 1.2
@@ -1,4 +1,4 @@
-//$Id: IndexerAction.java,v 1.1 2007/06/23 22:04:52 gavin Exp $
+//$Id: IndexerAction.java,v 1.2 2007/10/16 19:19:22 nrichards Exp $
package com.jboss.dvd.seam;
import java.util.Date;
@@ -46,6 +46,7 @@
lastIndexingTime = new Date();
}
+ @SuppressWarnings("unchecked")
private void indexProducts()
{
FullTextSession fullTextSession = getFullTextSession();
@@ -64,6 +65,7 @@
return (FullTextSession) em.getDelegate();
}
+ @SuppressWarnings("unchecked")
private void indexAllClasses(Class... entityTypes)
{
FullTextSession fullTextSession = getFullTextSession();
1.2 +2 -0 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/InsufficientQuantityException.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: InsufficientQuantityException.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/InsufficientQuantityException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- InsufficientQuantityException.java 18 Sep 2005 05:18:18 -0000 1.1
+++ InsufficientQuantityException.java 16 Oct 2007 19:19:22 -0000 1.2
@@ -14,6 +14,8 @@
public class InsufficientQuantityException
extends Exception
{
+ private static final long serialVersionUID = 7772258944523315127L;
+
List<Product> products = null;
public InsufficientQuantityException(List<Product> products) {
1.6 +2 -0 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Inventory.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Inventory.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Inventory.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- Inventory.java 11 Jan 2006 08:33:02 -0000 1.5
+++ Inventory.java 16 Oct 2007 19:19:22 -0000 1.6
@@ -15,6 +15,8 @@
public class Inventory
implements Serializable
{
+ private static final long serialVersionUID = 6114190195644971985L;
+
int quantity;
int sales;
long inventoryId;
1.8 +2 -0 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/OrderLine.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: OrderLine.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/OrderLine.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- OrderLine.java 14 May 2006 18:48:54 -0000 1.7
+++ OrderLine.java 16 Oct 2007 19:19:22 -0000 1.8
@@ -22,6 +22,8 @@
public class OrderLine
implements Serializable
{
+ private static final long serialVersionUID = 207236100660985541L;
+
long lineId;
int position;
Product product;
1.14 +2 -0 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Product.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Product.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/Product.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- Product.java 23 Jun 2007 22:04:52 -0000 1.13
+++ Product.java 16 Oct 2007 19:19:22 -0000 1.14
@@ -35,6 +35,8 @@
public class Product
implements Serializable
{
+ private static final long serialVersionUID = -5378546367347755065L;
+
long productId;
String asin;
String title;
1.7 +1 -0 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/ShoppingCart.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ShoppingCart.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/ShoppingCart.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- ShoppingCart.java 17 Dec 2006 07:20:05 -0000 1.6
+++ ShoppingCart.java 16 Oct 2007 19:19:22 -0000 1.7
@@ -16,6 +16,7 @@
public void addProduct(Product product, int quantity);
public List<OrderLine> getCart();
+ @SuppressWarnings("unchecked")
public Map getCartSelection();
public BigDecimal getSubtotal();
1.28 +1 -0 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/ShoppingCartBean.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ShoppingCartBean.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/ShoppingCartBean.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- ShoppingCartBean.java 19 Jun 2007 20:54:23 -0000 1.27
+++ ShoppingCartBean.java 16 Oct 2007 19:19:22 -0000 1.28
@@ -51,6 +51,7 @@
cartOrder.calculateTotals();
}
+ @SuppressWarnings("unchecked")
public Map getCartSelection() {
return cartSelection;
}
1.20 +3 -0 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/ShowOrdersAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ShowOrdersAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/ShowOrdersAction.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- ShowOrdersAction.java 25 Jun 2007 23:13:51 -0000 1.19
+++ ShowOrdersAction.java 16 Oct 2007 19:19:22 -0000 1.20
@@ -35,6 +35,8 @@
implements ShowOrders,
Serializable
{
+ private static final long serialVersionUID = -5377038496721657104L;
+
@In(value="currentUser",required=false)
Customer customer;
@@ -49,6 +51,7 @@
Order order;
@Begin @Factory("orders")
+ @SuppressWarnings("unchecked")
public String findOrders() {
orders = em.createQuery("select o from Order o where o.customer = :customer")
.setParameter("customer", customer)
1.11 +2 -0 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/StoreManagerBean.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: StoreManagerBean.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/StoreManagerBean.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- StoreManagerBean.java 17 Dec 2006 07:20:05 -0000 1.10
+++ StoreManagerBean.java 16 Oct 2007 19:19:22 -0000 1.11
@@ -22,6 +22,8 @@
implements StoreManager,
Serializable
{
+ private static final long serialVersionUID = 7011610947757223263L;
+
@PersistenceContext
EntityManager em;
More information about the jboss-cvs-commits
mailing list