From b13639575afa135db84029be8c5184449c731b53 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 17 Sep 2015 15:37:30 +0200 Subject: [PATCH] =?utf8?q?both=20methods=20have=20to=20return=20the=20inst?= =?utf8?q?ance=20again=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../model/customer/CustomerSessionBeanRemote.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; } -- 2.39.5