From: Roland Häder Date: Mon, 25 Apr 2016 16:15:21 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c6f2d8af6cd68d84011796d4c7746fd3e4209c35;p=pizzaservice-lib.git Continued a bit: - added @Remote annotation - added customer number length - added business method createCustomerNumber() Signed-off-by: Roland Häder --- 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 (); + }