@Entity public class Customer extends Object implements Serializable
Constructor and Description |
---|
Customer() |
Modifier and Type | Method and Description |
---|---|
String |
getEmail() |
long |
getId() |
String |
getName() |
int |
getVersion() |
ShoppingCart |
newCart()
Create a
ShoppingCart for this customer. |
void |
setEmail(String email) |
void |
setName(String name) |
String |
toString() |
public long getId()
public String getName()
public void setName(String name)
public String getEmail()
public void setEmail(String email)
public ShoppingCart newCart()
ShoppingCart
for this customer.public int getVersion()
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.