Package org.myorg.jpatickets.bo
Class Ticket
- java.lang.Object
-
- org.myorg.jpatickets.bo.Ticket
-
- All Implemented Interfaces:
Serializable
@Entity public class Ticket extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event
getEvent()
BigDecimal
getPrice()
Seat
getSeat()
boolean
isSold()
void
setPrice(BigDecimal price)
void
setSold(boolean sold)
String
toString()
-
-
-
Field Detail
-
event
private Event event
-
seat
private Seat seat
-
price
private BigDecimal price
-
sold
private boolean sold
-
-
Method Detail
-
getEvent
public Event getEvent()
-
getSeat
public Seat getSeat()
-
getPrice
public BigDecimal getPrice()
-
setPrice
public void setPrice(BigDecimal price)
-
isSold
public boolean isSold()
-
setSold
public void setSold(boolean sold)
-
-