From: Roland Haeder <roland@mxchange.org>
Date: Fri, 25 Sep 2015 12:28:07 +0000 (+0200)
Subject: Continued:
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=530fd4b98744fed67dd9db3b11da2fd6081939e9;p=jcustomer-lib.git

Continued:
- needs to return the updated object, through parameter the object is not updated
- updated jar
Signed-off-by:Roland Häder <roland@mxchange.org>
---

diff --git a/lib/jcore.jar b/lib/jcore.jar
index 2fbc389..a59d0c6 100644
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
diff --git a/lib/jshop-core.jar b/lib/jshop-core.jar
index 3637cb3..95145fb 100644
Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ
diff --git a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java b/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java
index 7d4cf29..9fbd71f 100644
--- a/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java
+++ b/src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java
@@ -33,8 +33,9 @@ public interface AdminCategorySessionBeanRemote extends Serializable {
 	 * Adds given category data from request to database
 	 *
 	 * @param category Category instance
+	 * @return Updated category instance
 	 * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given title is already used
 	 * @throws org.mxchange.jshopcore.exceptions.CannotAddCategoryException If the category cannot be added
 	 */
-	public void doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException;
+	public Category doAdminAddCategory (final Category category) throws CategoryTitleAlreadyUsedException, CannotAddCategoryException;
 }
diff --git a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java
index 3b33524..9cf68f8 100644
--- a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java
+++ b/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java
@@ -41,8 +41,9 @@ public interface AdminProductSessionBeanRemote extends Serializable {
 	 * Adds given product data from request to database
 	 *
 	 * @param product Product instance
+	 * @return Updated product instance
 	 * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used
 	 * @throws org.mxchange.jshopcore.exceptions.CannotAddProductException If something unexpected happened
 	 */
-	public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
+	public Product doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
 }