]> git.mxchange.org Git - jcustomer-lib.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Fri, 25 Sep 2015 12:28:07 +0000 (14:28 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 25 Sep 2015 12:28:07 +0000 (14:28 +0200)
- needs to return the updated object, through parameter the object is not updated
- updated jar
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcore.jar
lib/jshop-core.jar
src/org/mxchange/jshopcore/model/category/AdminCategorySessionBeanRemote.java
src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java

index 2fbc389b088701ec28613e7e931fe31f222d2639..a59d0c6d95b82ca1a27d0f31a2525956e8ba2819 100644 (file)
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
index 3637cb34b24594df76bbeb459adce3cd11ee0885..95145fbb52578c38bb7fb40734674103bf1fd9b4 100644 (file)
Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ
index 7d4cf293e583c3fd868231af79f31a634dad2e86..9fbd71f471b584cc592720eb3a0f6e8791fb1c9d 100644 (file)
@@ -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;
 }
index 3b33524411103769e8fd082b79cf7a12317e2f52..9cf68f8ab36dec4f569104a0eca03d712b404436 100644 (file)
@@ -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;
 }