/*
 *  The MIT License (MIT)
 *
 *  View the full license at:
 *  https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md
 *
 *  Copyright (c) 2015 Joseph Hendrix
 *
 *  Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree
 *
 */

package edu.wright.hendrix11.familyTree.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.validation.constraints.NotNull;

/**
 * @author Joe Hendrix
 */
@Entity
@NamedQuery(name = Gender.FIND_ALL, query = "SELECT g FROM Gender g")
public class Gender
{
    /**
     * Specifies the {@link String} that represents the {@link javax.persistence.NamedQuery} to create a {@link
     * javax.persistence.TypedQuery} to get all genders.
     */
    public static final String FIND_ALL = "Gender.findAll";

    @Id
    private char abbr;

    @Column(name = "FULL_WORD")
    @NotNull
    private String fullWord;

    /**
     * Public no-argument constructor for JPA.
     */
    public Gender()
    {
        super();
    }

    /**
     * @param abbr the abbreviation for the gender
     */
    public Gender(char abbr)
    {
        this.abbr = abbr;
    }

    /**
     * Returns the abbreviation for the gender. This is typically just the first letter.
     * 
     * @return the abbreviation for the gender
     * 
     * @see #getFullWord()
     */
    public char getAbbr()
    {
        return abbr;
    }

    /**
     * Sets the abbreviation for the gender. This is typically just the first letter.
     * 
     * @param abbr the abbreviation for the gender
     */
    public void setAbbr(char abbr)
    {
        this.abbr = abbr;
    }

    /**
     * Returns the entire word for the gender. Available values include Male, Female, Other, and Unknown.
     * 
     * @return the entire word for the gender
     */
    public String getFullWord()
    {
        return fullWord;
    }

    /**
     * Sets the entire word for the gender. Available values include Male, Female, Other, and Unknown.
     * 
     * @param fullWord the entire word for the gender
     */
    public void setFullWord(String fullWord)
    {
        this.fullWord = fullWord;
    }

    /**
     * @return A string representation of the gender, which is just the full word.
     *
     * @see #getFullWord()
     */
    @Override
    public String toString()
    {
        return fullWord;
    }
}

@@ -299,2138 +299,74 @@
 y;%0A%0A
-import javax.persistence.Column;%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.NamedQuery;%0Aimport javax.validation.constraints.NotNull;%0A%0A/**%0A * @author Joe Hendrix%0A */%0A@Entity%0A@NamedQuery(name = Gender.FIND_ALL, query = %22SELECT g FROM Gender g%22)%0Apublic class Gender%0A%7B%0A    /**%0A     * Specifies the %7B@link String%7D that represents the %7B@link javax.persistence.NamedQuery%7D to create a %7B@link%0A     * javax.persistence.TypedQuery%7D to get all genders.%0A     */%0A    public static final String FIND_ALL = %22Gender.findAll%22;%0A%0A    @Id%0A    private char abbr;%0A%0A    @Column(name = %22FULL_WORD%22)%0A    @NotNull%0A    private String fullWord;%0A%0A    /**%0A     * Public no-argument constructor for JPA.%0A     */%0A    public Gender()%0A    %7B%0A        super();%0A    %7D%0A%0A    /**%0A     * @param abbr the abbreviation for the gender%0A     */%0A    public Gender(char abbr)%0A    %7B%0A        this.abbr = abbr;%0A    %7D%0A%0A    /**%0A     * Returns the abbreviation for the gender. This is typically just the first letter.%0A     * %0A     * @return the abbreviation for the gender%0A     * %0A     * @see #getFullWord()%0A     */%0A    public char getAbbr()%0A    %7B%0A        return abbr;%0A    %7D%0A%0A    /**%0A     * Sets the abbreviation for the gender. This is typically just the first letter.%0A     * %0A     * @param abbr the abbreviation for the gender%0A     */%0A    public void setAbbr(char abbr)%0A    %7B%0A        this.abbr = abbr;%0A    %7D%0A%0A    /**%0A     * Returns the entire word for the gender. Available values include Male, Female, Other, and Unknown.%0A     * %0A     * @return the entire word for the gender%0A     */%0A    public String getFullWord()%0A    %7B%0A        return fullWord;%0A    %7D%0A%0A    /**%0A     * Sets the entire word for the gender. Available values include Male, Female, Other, and Unknown.%0A     * %0A     * @param fullWord the entire word for the gender%0A     */%0A    public void setFullWord(String fullWord)%0A    %7B%0A        this.fullWord = fullWord;%0A    %7D%0A%0A    /**%0A     * @return A string representation of the gender, which is just the full word.%0A     *%0A     * @see #getFullWord()%0A     */%0A    @Override%0A    public String toString()%0A    %7B%0A        return fullWord;%0A    %7D
+public enum Gender %0A%7B%0A    Male,%0A    Female,%0A    Other,%0A    Unknown;
 %0A%7D%0A

Update Gender.java