From: Roland Häder Date: Sun, 15 Oct 2017 20:58:49 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d0e62e452d4f1fcf1ae4f2c8123a38f77db24d5c;p=jproduct-lib.git Continued: - removed findById() as this has been moved to WAR project (and later Swing) for performance reasons Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jproduct/model/category/CategorySessionBeanRemote.java b/src/org/mxchange/jproduct/model/category/CategorySessionBeanRemote.java index 468adf5..2f991b5 100644 --- a/src/org/mxchange/jproduct/model/category/CategorySessionBeanRemote.java +++ b/src/org/mxchange/jproduct/model/category/CategorySessionBeanRemote.java @@ -19,7 +19,6 @@ package org.mxchange.jproduct.model.category; import java.io.Serializable; import java.util.List; import javax.ejb.Remote; -import org.mxchange.jproduct.exceptions.category.CategoryNotFoundException; /** * A remote-call interface for the shop @@ -29,19 +28,6 @@ import org.mxchange.jproduct.exceptions.category.CategoryNotFoundException; @Remote public interface CategorySessionBeanRemote extends Serializable { - /** - * Returns a category instance (entity) for given primary key. If not found, - * a proper exception is thrown. - *

- * @param categoryId Category id (primary key) - *

- * @return Category entity matching to primary key - *

- * @throws CategoryNotFoundException If a category with given primary key - * could not be found - */ - Category findCategoryById (final Long categoryId) throws CategoryNotFoundException; - /** * Some "getter" for a linked list of all categories *

diff --git a/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java b/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java index 109323c..f3ff691 100644 --- a/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java +++ b/src/org/mxchange/jproduct/model/product/ProductSessionBeanRemote.java @@ -19,7 +19,6 @@ package org.mxchange.jproduct.model.product; import java.io.Serializable; import java.util.List; import javax.ejb.Remote; -import org.mxchange.jproduct.exceptions.product.ProductNotFoundException; /** * An interface for non-administrative purposes @@ -29,19 +28,6 @@ import org.mxchange.jproduct.exceptions.product.ProductNotFoundException; @Remote public interface ProductSessionBeanRemote extends Serializable { - /** - * Returns a product instance (entity) for given primary key. If not found, - * a proper exception is thrown. - *

- * @param productId Product id (primary key) - *

- * @return Product entity matching to primary key - *

- * @throws ProductNotFoundException If a product with given primary key - * could not be found - */ - Product findProductById (final Long productId) throws ProductNotFoundException; - /** * Returns a list of all products *