]> git.mxchange.org Git - pizzaservice-lib.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Mon, 25 Apr 2016 16:15:21 +0000 (18:15 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 27 Apr 2016 19:37:25 +0000 (21:37 +0200)
- added @Remote annotation
- added customer number length
- added business method createCustomerNumber()

Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBeanRemote.java

index feddd9c88587a6dcc8ff6fb49ec7a3c6761ba786..602520da5d395537837e08b8c2650f877c7ee7e3 100644 (file)
@@ -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;
  * <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 ();
+
 }