]> git.mxchange.org Git - pizzaservice-swing.git/blobdiff - src/org/mxchange/pizzaapplication/application/PizzaServiceApplication.java
updated jars
[pizzaservice-swing.git] / src / org / mxchange / pizzaapplication / application / PizzaServiceApplication.java
index fc4bf918bdd8e83395b3bc01dff976e7c1d6e95f..1510bf4e38114204f2d290129f67c7b72e4c83d4 100644 (file)
@@ -193,11 +193,11 @@ public class PizzaServiceApplication extends BaseFrameworkSystem implements Pizz
                // Get title, price and category id
                String title = product.getTitle();
                Float price = product.getPrice();
-               Long categoryId = product.getCategoryId();
+               Long id = product.getId();
                Boolean available = product.getAvailable();
 
                // Debug message
-               this.getLogger().debug(MessageFormat.format("title={0},price={1},categoryId={2},available={3}", title, price, categoryId, available)); //NOI18N
+               this.getLogger().debug(MessageFormat.format("title={0},price={1},id={2},available={3}", title, price, id, available)); //NOI18N
 
                // Check all fields
                if (null == title) {
@@ -209,10 +209,10 @@ public class PizzaServiceApplication extends BaseFrameworkSystem implements Pizz
                } else if (null == price) {
                        // "price" not set
                        throw new IllegalArgumentException("product price is not set."); //NOI18N
-               } else if (null == categoryId) {
+               } else if (null == id) {
                        // "title" not set
                        throw new IllegalArgumentException("product category id is not set."); //NOI18N
-               } else if (categoryId == 0) {
+               } else if (id == 0) {
                        // "title" not set
                        throw new IllegalArgumentException("product category id is zero."); //NOI18N
                } else if (null == available) {