Package services.beans

Source Code of services.beans.HotelCustomerManagerBean

package services.beans;

import javax.ejb.*;
import services.entities.HotelCustomer;

/**
* Customer manager bean.
*
* @author Kaspars Zarinovs <k.zarinovs@ncl.ac.uk>
*
*/
@Stateless
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public class HotelCustomerManagerBean implements HotelCustomerManager
{
 
  /**
   * @see services.beans.HotelCustomerManager#createCustomer(java.lang.String, java.lang.String, java.lang.String)
   */
  @Override
  public HotelCustomer createCustomer(String firstName, String lastName, String dateOfBirth)
  {
    HotelCustomer c = new HotelCustomer(firstName, lastName, dateOfBirth);
    return c;
  }

}
TOP

Related Classes of services.beans.HotelCustomerManagerBean

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.