@Entity public class Ticket extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private Event |
event |
private BigDecimal |
price |
private Seat |
seat |
private boolean |
sold |
Modifier | Constructor and Description |
---|---|
protected |
Ticket() |
|
Ticket(Event event,
Seat seat) |
Modifier and Type | Method and Description |
---|---|
Event |
getEvent() |
BigDecimal |
getPrice() |
Seat |
getSeat() |
boolean |
isSold() |
void |
setPrice(BigDecimal price) |
void |
setSold(boolean sold) |
String |
toString() |
private Event event
private Seat seat
private BigDecimal price
private boolean sold
public Event getEvent()
public Seat getSeat()
public BigDecimal getPrice()
public void setPrice(BigDecimal price)
public boolean isSold()
public void setSold(boolean sold)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.