Package openbook.domain
Class Customer
- java.lang.Object
-
- openbook.domain.Customer
-
- All Implemented Interfaces:
java.io.Serializable
@Entity public class Customer extends java.lang.Object implements java.io.Serializable
A persistent entity represents a Customer.
Persistent Identity: auto-generated identity.
Mapping:
Design Notes: No setter for identity value.- Author:
- Pinaki Poddar
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Customer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEmail()
long
getId()
java.lang.String
getName()
int
getVersion()
ShoppingCart
newCart()
Create aShoppingCart
for this customer.void
setEmail(java.lang.String email)
void
setName(java.lang.String name)
java.lang.String
toString()
-
-
-
Method Detail
-
getId
public long getId()
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getEmail
public java.lang.String getEmail()
-
setEmail
public void setEmail(java.lang.String email)
-
newCart
public ShoppingCart newCart()
Create aShoppingCart
for this customer.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getVersion
public int getVersion()
-
-