/**
* TNTConcept Easy Enterprise Management by Autentia Real Bussiness Solution S.L.
* Copyright (C) 2007 Autentia Real Bussiness Solution S.L.
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.autentia.tnt.businessobject;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.autentia.tnt.dao.ITransferObject;
/**
* Transfer object to store request of holidays
* @author stajanov code generator
*/
public class AdminHoliday implements Serializable, ITransferObject {
/* adminHoliday - generated by stajanov (do not edit/delete) */
// Fields
private Integer id;
private Date beginDate;
private Date finalDate;
private HolidayState state;
private String observations;
private String userComment;
private Date chargeYear;
private Integer departmentId;
private Date insertDate;
private Date updateDate;
private User userRequest;
// Setters and getters
public Integer getId() {
return id;
}
private void setId(Integer id) {
this.id = id;
}
public Date getBeginDate() {
return beginDate;
}
public void setBeginDate(Date beginDate) {
this.beginDate = beginDate;
}
public Date getFinalDate() {
return finalDate;
}
public void setFinalDate(Date finalDate) {
this.finalDate = finalDate;
}
public HolidayState getState() {
return state;
}
public void setState(HolidayState state) {
this.state = state;
}
public String getObservations() {
return observations;
}
public void setObservations(String observations) {
this.observations = observations;
}
public String getUserComment() {
return userComment;
}
public void setUserComment(String userComment) {
this.userComment = userComment;
}
public Date getChargeYear() {
return chargeYear;
}
public void setChargeYear(Date chargeYear) {
this.chargeYear = chargeYear;
}
public Integer getDepartmentId() {
return departmentId;
}
public void setDepartmentId(Integer departmentId) {
this.departmentId = departmentId;
}
public Date getInsertDate() {
return insertDate;
}
public void setInsertDate(Date insertDate) {
this.insertDate = insertDate;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
public User getUserRequest() {
return userRequest;
}
public void setUserRequest(User userRequest) {
this.userRequest = userRequest;
}
public Integer getOwnerId() {
return userRequest.getId();
}
public void setOwnerId(Integer ownerId) {
}
@Override
public boolean equals(Object that) {
try {
if (that == null)
return false;
else
return this.getId().equals(((AdminHoliday) that).getId());
} catch (Exception e) {
return false;
}
}
@Override
public int hashCode() {
if (this.getId() == null)
return super.hashCode();
else
return this.getId().intValue();
}
public List<Integer> getOwnersId() {
// TODO Auto-generated method stub
return null;
}
/* adminHoliday - generated by stajanov (do not edit/delete) */
}