19 package org.turro.dossier.entity;
21 import java.util.Objects;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.GeneratedValue;
25 import javax.persistence.GenerationType;
26 import javax.persistence.Id;
27 import javax.persistence.ManyToOne;
28 import org.turro.string.Strings;
29 import org.turro.jpa.entity.IDaoEntity;
39 @GeneratedValue(strategy=GenerationType.IDENTITY)
40 @Column(name=
"IDENTIFIER")
43 private String grouping, title;
45 private int orderNumber, minChars;
47 private boolean required;
67 this.grouping = grouping;
83 this.orderNumber = orderNumber;
91 this.minChars = minChars;
99 this.required = required;
107 this.category = category;
134 if(Objects.equals(v.getDescriptorDefinition().getId(),
id)) {
144 _value = descriptorValue;
146 if(_dossier !=
null && descriptorValue.
getDossier() ==
null) {
161 return Strings.isBlank(title) || type ==
null;
Dossier getAssignedDossier()
void setRequired(boolean required)
void setMinChars(int minChars)
void setValue(DescriptorValue descriptorValue)
void setOrderNumber(int orderNumber)
void setTitle(String title)
void setGrouping(String grouping)
void setCategory(Category category)
void assignDossier(Dossier dossier)
void setType(DescriptorType type)
DescriptorValue getValue()
void setDescriptorDefinition(DescriptorDefinition descriptorDefinition)
void setDossier(Dossier dossier)
Set< DescriptorValue > getDescriptors()