18 package org.turro.dossier.entity;
20 import javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.GeneratedValue;
23 import javax.persistence.GenerationType;
24 import javax.persistence.Id;
25 import javax.persistence.ManyToOne;
26 import org.turro.string.Strings;
33 public class FieldDef implements java.io.Serializable {
36 @GeneratedValue(strategy=GenerationType.IDENTITY)
37 @Column(name=
"IDENTIFIER")
40 private String labelKey;
42 private Class javaClass;
44 @Column(name=
"FV_ORDER")
47 private boolean description;
48 private boolean publishable;
58 this.category = category;
66 this.description = description;
82 this.javaClass = javaClass;
90 this.labelKey = labelKey;
106 this.publishable = publishable;
112 return Strings.isBlank(labelKey) || javaClass ==
null || category ==
null;
void setLabelKey(String labelKey)
void setDescription(boolean description)
void setJavaClass(Class javaClass)
void setCategory(Category category)
void setPublishable(boolean publishable)