From 530fd4b98744fed67dd9db3b11da2fd6081939e9 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 25 Sep 2015 14:28:07 +0200 Subject: [PATCH] =?utf8?q?Continued:=20-=20needs=20to=20return=20the=20upd?= =?utf8?q?ated=20object,=20through=20parameter=20the=20object=20is=20not?= =?utf8?q?=20updated=20-=20updated=20jar=20Signed-off-by:Roland=20H=C3=A4d?= =?utf8?q?er=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jcore.jar | Bin 32202 -> 32286 bytes lib/jshop-core.jar | Bin 48557 -> 48641 bytes .../AdminCategorySessionBeanRemote.java | 3 ++- .../AdminProductSessionBeanRemote.java | 3 ++- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/jcore.jar b/lib/jcore.jar index 2fbc389b088701ec28613e7e931fe31f222d2639..a59d0c6d95b82ca1a27d0f31a2525956e8ba2819 100644 GIT binary patch delta 4699 zcmZ`-eOy)b8UH@#!oA$fQ6LcvK_Ow|#fBm;0wM&+iwL41Z(@V#-9m}^krx5wLv72g znr(J$8Czs8Th`FBi?&tfOLJ~EH)m#Tt8KPg&8BTxHp|UD&$*}T^?2?d{GR9h&hL4? z-{-l%-#OpI(a&h~5~;OSwjdV}0u*&`QB#zH?kzd@E9@VSm+`|C9X9fKn?0Qt+% zPA5fa+jEnLn_O6o|2UD1i!yvF!)Fd$3c-I}2*&?he0@0-DY)z+5V=Sp8($LlC7FW7 zvy0~tFGM`2crNim#Z$$bAl^jr!o&*~FG9TQR*O4H+(_{zix(wcw0Kj*yI#B)@urFw zD_)#<)5M$Zpm+x*h3iBm?o|A`y5SkxKg;XTNO)?Zq+7cI)(gFvSIjCIA{X(ke>-lN6@@b1!xA(R8 zr>}Ld>+b08ad)kBr!VO0z16+0y~n*OpAZ{hLH)p5H{Z6`)i15ADfeuf|D-|*o(pp{ zo99%iQ?ZTUVePH5(%}*8QSk!yIjBO#6IAJ-g(_9iA{D=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^4WI4$? zLDosK>fn?FE~uBF9F9tG3>*?vlT`x_Ij+Veh_N6rt1~9t1RB8T*cPy|!KJoCOGheNcp`K>-K2|L4wwZt_o}e-LsSp&qx^0PCRJ3d1EJN-cycw*jE}bq zc`paywZdl3i{})8ca@sAXGI1m0eHU3;^zr)V+K~KGth@hJ_({^8=er7UL2bQZjMxBD&0hQp>6G%ynTFK9-eyL zk3b`=Pevme&C@uX;=;G1Nimj}F?rJUOcy~a8iV4n*z0C*5_7SAW`2W+mNy$m z+o_$67cv;1vG&EY`B@)ls;#~#4#m;u&-rgZcYb0qvxGU*I@--VyI;CD1c1I*{W!~5 l{#-WKmvXF 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; } -- 2.39.5