package dk.dtu.compute.se2.web.fourth.entities; import java.io.Serializable; import javax.persistence.*; import javax.xml.bind.annotation.XmlRootElement; /** * Entity implementation class for Entity: Event * */ @Entity public class EventEntity implements Serializable { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private Integer id; @ManyToOne private Sensor sensor; private float value; private long time; private static final long serialVersionUID = 1L; public EventEntity() { super(); } public Integer getId() { return this.id; } public void setId(Integer id) { this.id = id; } public Sensor getSensor() { return this.sensor; } public void setSensor(Sensor sensor) { this.sensor = sensor; } public float getValue() { return this.value; } public void setValue(float value) { this.value = value; } public long getTime() { return this.time; } public void setTime(long time) { this.time = time; } }