/** * 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 org.apache.myfaces.custom.fileupload.UploadedFile; import com.autentia.tnt.dao.ITransferObject; /** * Transfer object to store Contacts * @author stajanov code generator */ public class DocumentVersion implements Serializable, ITransferObject { /* documentVersion - generated by stajanov (do not edit/delete) */ // Fields private Integer id; private String documentPath; private Date creationDate; private String version; private Integer ownerId; private Integer departmentId; private Date insertDate; private Date updateDate; private Document document; // Setters and getters public Integer getId() { return id; } private void setId( Integer id ) { this.id = id; } public String getDocumentPath() { return documentPath; } public void setDocumentPath( String documentPath ) { this.documentPath = documentPath; } public Date getCreationDate() { return creationDate; } public void setCreationDate( Date creationDate ) { this.creationDate = creationDate; } public String getVersion() { return version; } public void setVersion( String version ) { this.version = version; } public Integer getOwnerId() { return ownerId; } public void setOwnerId( Integer ownerId ) { this.ownerId = ownerId; } 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 Document getDocument() { return document; } public void setDocument( Document document ) { this.document = document; } public boolean equals( Object that ) { try { if (that == null) return false; else return this.getId().equals( ((DocumentVersion)that).getId() ); } catch (Exception e) { return false; } } public int hashCode() { if(this.getId()==null) return super.hashCode(); else return this.getId().intValue(); } /* documentVersion - generated by stajanov (do not edit/delete) */ private UploadedFile uploadDocument; private String oldDocumentPath; public UploadedFile getUploadDocument() { return uploadDocument; } public String getOldDocumentPath() { return oldDocumentPath; } public void setUploadDocument(UploadedFile uploadDocument) { this.uploadDocument = uploadDocument; } public List<Integer> getOwnersId() { // TODO Auto-generated method stub return null; } }