- added @Remote annotation
- added customer number length
- added business method createCustomerNumber()
Signed-off-by: Roland Häder <roland@mxchange.org>
*/
package org.mxchange.pizzaapplication.model.customer;
+import javax.ejb.Remote;
import org.mxchange.jcustomercore.model.customer.AdminCustomerSessionBeanRemote;
/**
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
+@Remote
public interface PizzaAdminCustomerSessionBeanRemote extends AdminCustomerSessionBeanRemote {
+ /**
+ * Length of customer number
+ */
+ public static final long CUSTOMER_NUMBER_LENGTH = 10;
+
+ /**
+ * Creates a new (free) customer number.
+ * <p>
+ * @return Free customer number (no free number should not happen)
+ */
+ String createCustomerNumber ();
+
}