001/* 002 $Id: ProtocolData.java 3207 2009-04-09 06:48:11Z gregory $ 003 004 Copyright (C) 2006 Gregory Vincic, Olle Mansson 005 Copyright (C) 2007 Gregory Vincic 006 007 This file is part of Proteios. 008 Available at http://www.proteios.org/ 009 010 Proteios is free software; you can redistribute it and/or modify it 011 under the terms of the GNU General Public License as published by 012 the Free Software Foundation; either version 2 of the License, or 013 (at your option) any later version. 014 015 Proteios is distributed in the hope that it will be useful, but 016 WITHOUT ANY WARRANTY; without even the implied warranty of 017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 018 General Public License for more details. 019 020 You should have received a copy of the GNU General Public License 021 along with this program; if not, write to the Free Software 022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 023 02111-1307, USA. 024*/ 025package org.proteios.core.data; 026 027/** 028 @author enell 029 @version 2.0 030 @see org.proteios.core.Protocol 031 @see <a href="../../../../../../../development/overview/data/protocols.html">Protocol overview</a> 032 @hibernate.class table="`Protocols`" lazy="true" 033*/ 034public class ProtocolData 035 extends CommonData 036 implements FileAttachableData 037{ 038 039 /* 040 From the FileAttachableData interface 041 ------------------------------------------- 042 */ 043 private FileData file; 044 public FileData getFile() 045 { 046 return file; 047 } 048 049 public void setFile(FileData file) 050 { 051 this.file = file; 052 } 053 // ------------------------------------------- 054 055 private ProtocolTypeData protocolType; 056 /** 057 Get the associated {@link ProtocolTypeData} item. 058 @hibernate.many-to-one column="`protocoltype_id`" not-null="true" outer-join="false" 059 */ 060 public ProtocolTypeData getProtocolType() 061 { 062 return protocolType; 063 } 064 public void setProtocolType(ProtocolTypeData protocolType) 065 { 066 this.protocolType = protocolType; 067 } 068 069}