/** * 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 CommissioningChange implements Serializable, ITransferObject { /** Serial version field */ private static final long serialVersionUID = -1L; // Fields private Integer id; private Commissioning commissioning; private Date insertDate; private Date updateDate; private Date deleteDate; private User user; private Integer ownerId; private Integer departmentId; private String field; private String oldValue; private String newValue; private CommissioningStatus status; @Override public boolean equals(Object that) { try { if (that == null) return false; else return this.getId().equals(((CommissioningChange) that).getId()); } catch (Exception e) { return false; } } @Override public int hashCode() { if (this.getId() == null) return super.hashCode(); else return this.getId().intValue(); } /** * @return the id */ public Integer getId() { return id; } /** * @param id the id to set */ public void setId(Integer id) { this.id = id; } /** * @return the commissioning */ public Commissioning getCommissioning() { return commissioning; } /** * @param commissioning the commissioning to set */ public void setCommissioning(Commissioning commissioning) { this.commissioning = commissioning; } /** * @return the insertDate */ public Date getInsertDate() { return insertDate; } /** * @param insertDate the insertDate to set */ public void setInsertDate(Date insertDate) { this.insertDate = insertDate; } /** * @return the updateDate */ public Date getUpdateDate() { return updateDate; } /** * @param updateDate the updateDate to set */ public void setUpdateDate(Date updateDate) { this.updateDate = updateDate; } /** * @return the user */ public User getUser() { return user; } /** * @param user the user to set */ public void setUser(User user) { this.user = user; } /** * @return the ownerId */ public Integer getOwnerId() { return ownerId; } /** * @param ownerId the ownerId to set */ public void setOwnerId(Integer ownerId) { this.ownerId = ownerId; } /** * @return the departmentId */ public Integer getDepartmentId() { return departmentId; } /** * @param departmentId the departmentId to set */ public void setDepartmentId(Integer departmentId) { this.departmentId = departmentId; } /** * @return the field */ public String getField() { return field; } /** * @param field the field to set */ public void setField(String field) { this.field = field; } /** * @return the oldValue */ public String getOldValue() { return oldValue; } /** * @param oldValue the oldValue to set */ public void setOldValue(String oldValue) { this.oldValue = oldValue; } /** * @return the newValue */ public String getNewValue() { return newValue; } /** * @param newValue the newValue to set */ public void setNewValue(String newValue) { this.newValue = newValue; } /** * @return the status */ public CommissioningStatus getStatus() { return status; } /** * @param status the status to set */ public void setStatus(CommissioningStatus status) { this.status = status; } /** * @return the deleteDate */ public Date getDeleteDate() { return deleteDate; } /** * @param deleteDate the deleteDate to set */ public void setDeleteDate(Date deleteDate) { this.deleteDate = deleteDate; } public List<Integer> getOwnersId() { // TODO Auto-generated method stub return null; } }