/** * */ package org.celllife.idart.database.hibernate; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; /** */ @Entity public class AttributeType { public AttributeType() { super(); id = -1; } @Id @GeneratedValue int id; String name; Class<?> dataType; String description; /** * @return the id */ public int getId() { return id; } /** * @param id * the id to set */ public void setId(int id) { this.id = id; } /** * @return the name */ public String getName() { return name; } /** * @param name * the name to set */ public void setName(String name) { this.name = name; } /** * @return the dataType */ public Class<?> getDataType() { return dataType; } /** * @param dataType * the dataType to set */ public void setDataType(Class<?> dataType) { this.dataType = dataType; } /** * @return the description */ public String getDescription() { return description; } /** * @param description * the description to set */ public void setDescription(String description) { this.description = description; } @Override public String toString() { return name; } }