Modifier and Type | Field and Description |
---|---|
private BigDecimal |
amount |
private long |
buyerId
This property has been purposely modeled as an ID and not a
relationship to show how JPA queries can still functionally associate
information without an explicit foreign key
|
private List<Clerk> |
clerks |
private Date |
date |
private long |
id |
private Store |
store |
Constructor and Description |
---|
Sale() |
Modifier and Type | Method and Description |
---|---|
Sale |
addClerk(Clerk... clerk) |
BigDecimal |
getAmount() |
long |
getBuyerId() |
List<Clerk> |
getClerks() |
Date |
getDate() |
long |
getId() |
Store |
getStore() |
Sale |
setAmount(BigDecimal amount) |
Sale |
setBuyerId(long buyerId) |
Sale |
setClerks(List<Clerk> clerks) |
Sale |
setDate(Date date) |
Sale |
setStore(Store store) |
String |
toString() |
private long id
private Date date
private BigDecimal amount
private long buyerId
private Store store
public long getId()
public Store getStore()
public BigDecimal getAmount()
public Sale setAmount(BigDecimal amount)
public long getBuyerId()
public Sale setBuyerId(long buyerId)
public Date getDate()
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.