當前位置: 首頁>>代碼示例>>Java>>正文


Java MemberShipStatus類代碼示例

本文整理匯總了Java中com.acmeair.entities.Customer.MemberShipStatus的典型用法代碼示例。如果您正苦於以下問題:Java MemberShipStatus類的具體用法?Java MemberShipStatus怎麽用?Java MemberShipStatus使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


MemberShipStatus類屬於com.acmeair.entities.Customer包,在下文中一共展示了MemberShipStatus類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createCustomer

import com.acmeair.entities.Customer.MemberShipStatus; //導入依賴的package包/類
public Customer createCustomer(String username, String password,
		MemberShipStatus status, int total_miles, int miles_ytd,
		String phoneNumber, PhoneType phoneNumberType,
		CustomerAddressImpl address) {

	CustomerImpl customer = new CustomerImpl(username, password, status, total_miles, miles_ytd, address, phoneNumber, phoneNumberType);
	customerRepository.save(customer);
	return customer;
}
 
開發者ID:WillemJiang,項目名稱:acmeair,代碼行數:10,代碼來源:CustomerServiceImpl.java

示例2: createCustomer

import com.acmeair.entities.Customer.MemberShipStatus; //導入依賴的package包/類
@Transactional(propagation=Propagation.REQUIRED)
@Override
public Customer createCustomer(String username, String password,
		MemberShipStatus status, int total_miles, int miles_ytd,
		String phoneNumber, PhoneType phoneNumberType,
		CustomerAddress address) {
	Customer customer = new Customer(username, password, status,
			total_miles, miles_ytd, address, phoneNumber, phoneNumberType);
	try {
		em.persist(customer);
		return customer;
	} catch (Exception e) {
		throw new RuntimeException(e);
	}
}
 
開發者ID:Hellaenergy,項目名稱:openshift-acmeair,代碼行數:16,代碼來源:CustomerServiceImpl.java

示例3: createCustomer

import com.acmeair.entities.Customer.MemberShipStatus; //導入依賴的package包/類
public Customer createCustomer(
String username, String password, MemberShipStatus status, int total_miles,
int miles_ytd, String phoneNumber, PhoneType phoneNumberType, CustomerAddress address);
 
開發者ID:Hellaenergy,項目名稱:openshift-acmeair,代碼行數:4,代碼來源:CustomerService.java


注:本文中的com.acmeair.entities.Customer.MemberShipStatus類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。