@Entity public class Event extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private int |
id |
private String |
name |
private Date |
startTime |
private List<Ticket> |
tickets |
private Venue |
venue |
Modifier | Constructor and Description |
---|---|
protected |
Event() |
|
Event(int id) |
|
Event(Venue venue) |
Modifier and Type | Method and Description |
---|---|
int |
getId() |
String |
getName() |
Date |
getStartTime() |
List<Ticket> |
getTickets() |
Venue |
getVenue() |
void |
setName(String name) |
void |
setStartTime(Date startTime) |
void |
setTickets(List<Ticket> tickets) |
String |
toString() |
Event |
withName(String name) |
Event |
withStartTime(Date startTime) |
Event |
withTicket(Ticket ticket) |
private int id
private String name
private Venue venue
private Date startTime
protected Event()
public Event(Venue venue)
public Event(int id)
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.