package com.ticketmanor.model;

import java.time.*;
import javax.persistence.*;

/*
 * Event - An Event is one act at one time at one Venue
 */
import javax.xml.bind.annotation.*;

@XmlRootElement
@Entity @Table(name="events")
public class Event   {
	@Id @GeneratedValue(strategy=GenerationType.AUTO)
	long id;
	/** The Act; may be a movie, a troupe, a rock group, etc. */
	@ManyToOne
	Act what;
	/** When this ticket is for (to the minute, e.g., 2014-11-11T11:11) */
	@Column(name="date_time")
	LocalDateTime dateTime;
	/** The Venue at which the event takes place. */
	@ManyToOne
	Venue where;
	
	public Event(Act act, LocalDateTime dateTime, Venue where) {
		this.what = act;
		this.dateTime = dateTime;
		this.where = where;
	}
	
	public Event() {
		// required by JPA
	}

	public String toString() {
		return what + "@" + dateTime + " " + where;
	}

	public void setId(int id) {
		this.id = id;
	}

	public long getId() {
		return id;
	}

	public Act getWhat() {
		return what;
	}

	public LocalDateTime getWhen() {
		return dateTime;
	}

	public Venue getWhere() {
		return where;
	}
}

@@ -507,22 +507,18 @@
 ime date
-Time
 ;%0A
+
 %09/** The
@@ -679,20 +679,16 @@
 his.date
-Time
  = dateT
@@ -816,20 +816,16 @@
 %22 + date
-Time
  + %22 %22 +
@@ -993,20 +993,20 @@
 Time get
-When
+Date
 () %7B%0A%09%09r
@@ -1015,20 +1015,16 @@
 urn date
-Time
 ;%0A%09%7D%0A%0A%09p

Tweak property names