package fi.arcusys.koku.common.service.datamodel;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
/**
* Entity for representing single time slot in appointment in AV functionality.
*
* @author Dmitry Kudinov (dmitry.kudinov@arcusys.fi)
* Jul 21, 2011
*/
@Entity
public class AppointmentSlot extends AbstractEntity {
private int slotNumber;
private Date appointmentDate;
private int startTime;
private int endTime;
private String location;
@Lob
@Column(name="comment", length=512)
private String comment;
/**
* @return the slotNumber
*/
public int getSlotNumber() {
return slotNumber;
}
/**
* @param slotNumber the slotNumber to set
*/
public void setSlotNumber(int slotNumber) {
this.slotNumber = slotNumber;
}
/**
* @return the appointmentDate
*/
public Date getAppointmentDate() {
return appointmentDate;
}
/**
* @param appointmentDate the appointmentDate to set
*/
public void setAppointmentDate(Date appointmentDate) {
this.appointmentDate = appointmentDate;
}
/**
* @return the location
*/
public String getLocation() {
return location;
}
/**
* @param location the location to set
*/
public void setLocation(String location) {
this.location = location;
}
/**
* @return the comment
*/
public String getComment() {
return comment;
}
/**
* @param comment the comment to set
*/
public void setComment(String comment) {
this.comment = comment;
}
/**
* @return the startTime
*/
public int getStartTime() {
return startTime;
}
/**
* @param startTime the startTime to set
*/
public void setStartTime(int startTime) {
this.startTime = startTime;
}
/**
* @return the endTime
*/
public int getEndTime() {
return endTime;
}
/**
* @param endTime the endTime to set
*/
public void setEndTime(int endTime) {
this.endTime = endTime;
}
}