/*******************************************************************************
* Copyright (c) 2012 Dmitry Tikhomirov.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/gpl.html
*
* Contributors:
* Dmitry Tikhomirov - initial API and implementation
******************************************************************************/
package org.opensheet.shared.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import com.extjs.gxt.ui.client.data.BeanModelTag;
@Entity
@Table(name = "holiday")
public class Holiday implements Serializable, BeanModelTag{
/**
*
*/
private static final long serialVersionUID = -7162283833149989091L;
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Integer id;
@Temporal(value=TemporalType.DATE)
private Date date;
@Column(columnDefinition = "tinyint")
private Boolean status;
public Holiday(){
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public Boolean getStatus() {
return status;
}
public void setStatus(Boolean status) {
this.status = status;
}
}