/** * This file is part of Faktotum. * * * Faktotum is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation, either version 3 of * the License, or (at your option) any later version. * * Faktotum 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with Faktotum. * * If not, see <http://www.gnu.org/licenses/>. */ package de.romankreisel.faktotum.datamodel; import javax.persistence.Column; import javax.persistence.Entity; /** * @author Roman Kreisel <mail@romankreisel.de> * */ @Entity(name = "Function") public class FunctionEntity extends FaktotumEntity { @Column(unique = true) private String name; private String description; private boolean studentFunction = false; private boolean chargiaFunction = false; private boolean obsolete = false; /** * @return the description */ public String getDescription() { return this.description; } /** * @return the name */ public String getName() { return this.name; } /** * @return the chargiaFunction */ public boolean isChargiaFunction() { return this.chargiaFunction; } /** * @return the obsolete */ public boolean isObsolete() { return this.obsolete; } /** * @return the studentFunction */ public boolean isStudentFunction() { return this.studentFunction; } /** * @param chargiaFunction * the chargiaFunction to set */ public void setChargiaFunction(boolean chargiaFunction) { this.chargiaFunction = chargiaFunction; } /** * @param description * the description to set */ public void setDescription(String description) { this.description = description; } /** * @param name * the name to set */ public void setName(String name) { this.name = name; } /** * @param obsolete * the obsolete to set */ public void setObsolete(boolean obsolete) { this.obsolete = obsolete; } /** * @param studentFunction * the studentFunction to set */ public void setStudentFunction(boolean studentFunction) { this.studentFunction = studentFunction; } }