From c6f2d8af6cd68d84011796d4c7746fd3e4209c35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 25 Apr 2016 18:15:21 +0200 Subject: [PATCH] Continued a bit: - added @Remote annotation - added customer number length - added business method createCustomerNumber() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../PizzaAdminCustomerSessionBeanRemote.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBeanRemote.java b/src/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBeanRemote.java index feddd9c..602520d 100644 --- a/src/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBeanRemote.java +++ b/src/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBeanRemote.java @@ -16,6 +16,7 @@ */ package org.mxchange.pizzaapplication.model.customer; +import javax.ejb.Remote; import org.mxchange.jcustomercore.model.customer.AdminCustomerSessionBeanRemote; /** @@ -23,6 +24,19 @@ import org.mxchange.jcustomercore.model.customer.AdminCustomerSessionBeanRemote; *

* @author Roland Haeder */ +@Remote public interface PizzaAdminCustomerSessionBeanRemote extends AdminCustomerSessionBeanRemote { + /** + * Length of customer number + */ + public static final long CUSTOMER_NUMBER_LENGTH = 10; + + /** + * Creates a new (free) customer number. + *

+ * @return Free customer number (no free number should not happen) + */ + String createCustomerNumber (); + } -- 2.39.5