- addCustomer(): adds given customer to database (JPA)
- createCustomerNumber(): creates a free customer number. The EJB *can* do it with generic CustomerUtils class, but don't have to.
*/
List<Customer> allCustomers ();
+ /**
+ * Adds the given customer instance to database and returns an updated
+ * instance.
+ * <p>
+ * @param customer Customer instance
+ *
+ * @return Updated customer
+ */
+ Customer addCustomer (final Customer customer);
+
+ /**
+ * Creates a new (free) customer number.
+ * <p>
+ * @return Free customer number (no free number should not happen)
+ */
+ String createCustomerNumber ();
+
}