From: Roland Haeder Date: Thu, 17 Sep 2015 13:37:30 +0000 (+0200) Subject: both methods have to return the instance again X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b13639575afa135db84029be8c5184449c731b53;p=jproduct-lib.git both methods have to return the instance again Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java index d46d905..0ee29d2 100644 --- a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java @@ -32,9 +32,10 @@ public interface CustomerSessionBeanRemote extends Serializable { /** * Fills given customer instance with all available data * - * @param customer Customer instance + * @param customer Initial Customer instance + * @return Prepared Customer instance */ - public void fillCustomerData (final Customer customer); + public Customer fillCustomerData (final Customer customer); /** * Checks if the the given customer instance is already registered @@ -49,8 +50,9 @@ public interface CustomerSessionBeanRemote extends Serializable { * Registers the customer and creates a customer number after succesful * persisting. * - * @param customer Customer instance + * @param customer Initial customer instance + * @return Prepared Customer instance * @throws org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException If the customer is already registered. */ - public void registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException; + public Customer registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException; }