/** * TNTConcept Easy Enterprise Management by Autentia Real Bussiness Solution S.L. * Copyright (C) 2007 Autentia Real Bussiness Solution S.L. * * 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. * * 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. * * 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 BulletinBoards * * @author stajanov code generator */ public class CommissioningDelay implements Serializable, ITransferObject { /** Serial version field */ private static final long serialVersionUID = -1L; /* CommissioningDelay - generated by stajanov (do not edit/delete) */ // Fields private Integer id; private Date originalDate; private Date delayedToDate; private String reason; private Date insertDate; private Date updateDate; private Integer ownerId; private Integer departmentId; private CommissioningStatus status; private Commissioning commissioning; // Setters and getters public Integer getOwnerId() { return ownerId; } public void setOwnerId(Integer id) { this.ownerId = id; } public Integer getDepartmentId() { return id; } public void setDepartmentId(Integer id) { this.departmentId = id; } public Integer getId() { return id; } private void setId(Integer id) { this.id = id; } public Date getOriginalDate() { return originalDate; } public void setOriginalDate(Date originalDate) { this.originalDate = originalDate; } public Date getDelayedToDate() { return delayedToDate; } public void setDelayedToDate(Date delayedToDate) { this.delayedToDate = delayedToDate; } public String getReason() { return reason; } public void setReason(String reason) { this.reason = reason; } 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; } @Override public boolean equals(Object that) { try { if (that == null) return false; else return this.getId().equals(((CommissioningDelay)that).getId()); } catch (Exception e) { return false; } } @Override public int hashCode() { if (this.getId() == null) return super.hashCode(); else return this.getId().intValue(); } public Commissioning getCommissioning() { return commissioning; } public void setCommissioning(Commissioning commissioning) { this.commissioning = commissioning; } public CommissioningStatus getStatus() { return status; } public void setStatus(CommissioningStatus status) { this.status = status; } public List<Integer> getOwnersId() { // TODO Auto-generated method stub return null; } /* CommissioningDelay - generated by stajanov (do not edit/delete) */ }