/*
$Id: ChildData.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 a ChildItem in BASE.
@author Your name
@version 2.0
@see net.sf.basedb.core.ChildItem
@see Any item overview
@base.modified $Date: 2009-04-06 14:52:39 +0200 (må, 06 apr 2009) $
@hibernate.class table="`Children`" lazy="false"
*/
public class ChildItem
extends BasicData
implements Nameable
{
public ChildData()
{}
/*
From the NameableData interface
-------------------------------------------
*/
private String name;
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
private String description;
public String getDescription()
{
return description;
}
public void setDescription(String description)
{
this.description = description;
}
// -------------------------------------------
private AnyData parent;
/**
Get the parent.
@hibernate.many-to-one column="`parent_id`" not-null="true" update="false"
*/
public AnyData getParent()
{
return parent;
}
public void setParent(AnyData parent)
{
this.parent = parent;
}
}