View Javadoc
1   package org.myorg.jpatickets.dto;
2   
3   import java.io.Serializable;
4   import java.util.Date;
5   
6   public class EventDTO implements Serializable {
7       private static final long serialVersionUID = 4881952492348300544L;
8       private int id;
9       private String eventName;
10      private String venueName;
11      private Date startTime;
12      private int numTickets;
13      
14      public int getId() { return id; }
15      public void setId(int id) {
16          this.id = id;
17      }
18      
19      public String getEventName() { return eventName; }
20      public void setEventName(String eventName) {
21          this.eventName = eventName;
22      }
23      
24      public String getVenueName() { return venueName; }
25      public void setVenueName(String venueName) {
26          this.venueName = venueName;
27      }
28      
29      public Date getStartTime() { return startTime; }
30      public void setStartTime(Date startTime) {
31          this.startTime = startTime;
32      }
33      
34      public int getNumTickets() { return numTickets; }
35      public void setNumTickets(int numTickets) {
36          this.numTickets = numTickets;
37      }
38      
39      @Override
40      public String toString() {
41          StringBuilder builder = new StringBuilder();
42          builder.append("EventDTO [id=").append(id)
43              .append(", eventName=").append(eventName)
44              .append(", venueName=").append(venueName)
45              .append(", startTime=").append(startTime)
46              .append(", numTickets=").append(numTickets)
47              .append("]");
48          return builder.toString();
49      }
50  }