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;
}


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;
import javax.validation.constraints.NotNull;

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

    @NotNull
    private Integer anxietyIdentity;
}


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.
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.
