/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.web.organizer.data;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.PrimaryKeyJoinColumn;
/**
*
* @author Gery
*/
@Entity
public class Event implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id = 0;
private String location = "";
@OneToOne
@PrimaryKeyJoinColumn
private Task task;
public Event() {
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public Task getTask() {
return task;
}
public void setTask(Task task) {
this.task = task;
}
}