/**
* 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;
import org.eclipse.persistence.annotations.Index;
@Entity(name = "MemberStatus")
public class MemberStatusEntity extends FaktotumEntity {
@Index(unique = true)
@Column(columnDefinition = "TEXT")
private String name;
@Column(columnDefinition = "TEXT")
private String description;
private boolean student;
private boolean listAsMember;
/**
* @return the description
*/
public String getDescription() {
return this.description;
}
public String getName() {
return this.name;
}
/**
* @return the listAsMember
*/
public boolean isListAsMember() {
return this.listAsMember;
}
/**
* @return Returns whether this is a status, describing an active student
*/
public boolean isStudent() {
return this.student;
}
/**
* @param description
* the description to set
*/
public void setDescription(String description) {
this.description = description;
}
/**
* @param listAsMember
* the listAsMember to set
*/
public void setListAsMember(boolean listAsMember) {
this.listAsMember = listAsMember;
}
public void setName(String name) {
this.name = name;
}
/**
* @param student
* Set whether this is a status, describing an active student
*/
public void setStudent(boolean student) {
this.student = student;
}
}