blob: fb6939f54faa65c43140f466a76ceac887816d59 [file] [log] [blame]
package de.ids_mannheim.korap.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Getter;
import lombok.Setter;
/** Describes annotation tags available in the system / used in
* annotating corpus data.
*
* @author margaretha
*
*/
@Setter
@Getter
@Entity
@Table(name = "annotation")
public class Annotation {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
private String code;
private String type;
private String description;
@Column(name = "de_description")
private String germanDescription;
@Override
public String toString () {
return "id=" + id + ", code= " + code + ", type= " + type
+ ", description=" + description + ", germanDescription="
+ germanDescription;
}
}