Modifier and Type | Class and Description |
---|---|
static class |
Product.ProductASC |
Modifier and Type | Field and Description |
---|---|
private Member |
buyer |
private ProductCategory |
category |
private Date |
dateCreated |
private int |
id |
private String |
name |
private BigDecimal |
price |
private Member |
seller |
private int |
year |
Modifier and Type | Method and Description |
---|---|
Member |
getBuyer() |
ProductCategory |
getCategory() |
Date |
getDateCreated() |
int |
getId() |
String |
getName() |
BigDecimal |
getPrice() |
Member |
getSeller() |
int |
getYear() |
protected void |
prePersist() |
void |
setBuyer(Member buyer) |
void |
setCategory(ProductCategory category) |
void |
setName(String name) |
void |
setPrice(BigDecimal price) |
void |
setSeller(Member seller) |
void |
setYear(int year) |
String |
toString() |
private int id
@NotNull private ProductCategory category
private int year
@NotNull private BigDecimal price
private Member buyer
protected void prePersist()
public int getId()
public Date getDateCreated()
public ProductCategory getCategory()
public void setCategory(ProductCategory category)
public String getName()
public void setName(String name)
public int getYear()
public void setYear(int year)
public BigDecimal getPrice()
public void setPrice(BigDecimal price)
public Member getSeller()
public void setSeller(Member seller)
public Member getBuyer()
public void setBuyer(Member buyer)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.