/* $Id: AnyData.txt 4889 2009-04-06 12:52:39Z nicklas $ Copyright (C) 2005 Nicklas Nordborg Copyright (C) 2006 Jari Häkkinen This file is part of BASE - BioArray Software Environment. Available at http://base.thep.lu.se/ BASE 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, or (at your option) any later version. BASE 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 BASE. If not, see . */ package net.sf.basedb.core.data; /** This class is used to represent an AnyItem in BASE. @author Your name @version 2.0 @see net.sf.basedb.core.AnyItem @see Any item overview @base.modified $Date: 2009-04-06 14:52:39 +0200 (må, 06 apr 2009) $ @hibernate.class table="`Anys`" lazy="false" */ public class AnyData extends CommonData { public AnyData() {} // TODO - Methods below this line are examples only, modify or remove as needed public static int long MAX_STRINGPROPERTY_LENGTH = 255; private String stringProperty; /** Get the string property. @hibernate.property column="`string_property`" type="string" length="255" not-null="true" */ public String getStringProperty() { return stringProperty; } public void setStringProperty(String stringProperty) { this.stringProperty = stringProperty; } private int intProperty; /** Get the int property. @hibernate.property column="`int_property`" type="int" not-null="true" */ public int getIntProperty() { return intProperty; } public void setIntProperty(int intProperty) { this.intProperty = intProperty; } private boolean booleanProperty; /** Get the boolean property. @hibernate.property column="`boolean_property`" type="boolean" not-null="true" */ public boolean isBooleanProperty() { return booleanProperty; } public void setBooleanProperty(boolean booleanProperty) { this.booleanProperty = booleanProperty; } private Date dateProperty; /** Get the date property. Null is allowed. @hibernate.property column="`date_property`" type="date" not-null="false" */ public Date getDateProperty() { return dateProperty; } public void setDateProperty(Date dateProperty) { this.dateProperty = dateProperty; } private OtherData other; /** Get the other date. @hibernate.many-to-one column="`other_id`" not-null="true" outer-join="false" */ public OtherData getOther() { return other; } public void setOther(OtherData other) { this.other = other; } private Set children; /** One-to-many between parent and children. @hibernate.set lazy="true" inverse="true" cascade="delete" @hibernate.collection-key column="`any_id`" @hibernate.collection-one-to-many class="net.sf.basedb.core.data.ChildData" */ Set getChildren() { return children; } void setChildren(Set children) { this.children = children; } }