package edu.virginia.psyc.r01.persistence;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.mindtrails.domain.questionnaire.LinkedQuestionnaireData;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by dan on 8/27/15.
 */
@Entity
@Table(name="AnxietyIdentity")
@EqualsAndHashCode(callSuper = true)
@Data
public class AnxietyIdentity extends LinkedQuestionnaireData {

    private Integer anxietyIdentity;
}


@@ -223,16 +223,61 @@
 e.Table;
+%0Aimport javax.validation.constraints.NotNull;
 %0A%0A/**%0A *
@@ -454,16 +454,29 @@
 Data %7B%0A%0A
+    @NotNull%0A
     priv

Add @NotNull validation to the Anxiety Identity java file. Keep the form hydration logic in the HTML, because the radio button options are HTML elements, not Strings. Migrating that logic to the Java file would be a pain.