package com.sap.mentors.lemonaid.entities;

import static javax.persistence.TemporalType.TIMESTAMP;

import java.util.Calendar;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

@Entity
@Table(name="events")
public class Event {	

	@Id
	private String id;
	private String source;
    private String sourceId;
    private String name;
    private String location;
	@Temporal(TIMESTAMP) private Calendar startDate;
	@Temporal(TIMESTAMP) private Calendar endDate;
	private String url;
	
	public String getId() {
		return id;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	public String getSource() {
		return source;
	}
	
	public void setSource(String source) {
		this.source = source;
	}
	
	public String getSourceId() {
		return sourceId;
	}
	
	public void setSourceId(String sourceId) {
		this.sourceId = sourceId;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLocation() {
		return location;
	}
	
	public void setLocation(String location) {
		this.location = location;
	}
	
	public Calendar getStartDate() {
		return startDate;
	}
	
	public void setStartDate(Calendar startDate) {
		this.startDate = startDate;
	}
	
	public Calendar getEndDate() {
		return endDate;
	}
	
	public void setEndDate(Calendar endDate) {
		this.endDate = endDate;
	}
	
	public String getUrl() {
		return url;
	}
	
	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String toString() {
		return "Event [id=" + id + ", source=" + source + ", sourceId=" + sourceId + ", name=" + name + ", location="
				+ location + ", startDate=" + startDate + ", endDate=" + endDate + ", url=" + url + "]";
	}

}

@@ -556,16 +556,41 @@
 ng url;%0A
+%09private String deepUrl;%0A
 %09%0A%09publi
@@ -1542,16 +1542,140 @@
 rl;%0A%09%7D%0A%0A
+%09public String getDeepUrl() %7B%0A%09%09return deepUrl;%0A%09%7D%0A%0A%09public void setDeepUrl(String deepUrl) %7B%0A%09%09this.deepUrl = deepUrl;%0A%09%7D%0A%0A
 %09@Overri
@@ -1904,16 +1904,45 @@
  + url +
+ %22, deepUrl=%22%0A%09%09%09%09+ deepUrl +
  %22%5D%22;%0A%09%7D

Add deep URL to events entity