本文整理匯總了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;
}
示例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);
}
}
示例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);