/*
 *  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.bean;

import edu.wright.hendrix11.familyTree.dataBean.GenderDataBean;
import edu.wright.hendrix11.familyTree.entity.Gender;

import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.view.ViewScoped;
import javax.inject.Named;

import java.io.Serializable;

/**
 * @author Joe
 */
@Named
@ViewScoped
public class GenderBean extends AbstractBean<Gender> implements Serializable
{

    @EJB
    GenderDataBean genderDataBean;

    /**
     *
     */
    @Override
    @PostConstruct
    public void initialize()
    {
        super.initialize(genderDataBean);
    }
}
@@ -636,37 +636,8 @@
 Bean
- extends AbstractBean%3CGender%3E
  imp
@@ -663,184 +663,76 @@
 e%0A%7B%0A
-%0A
     
-@EJB%0A    GenderDataBean genderDataBean;%0A%0A    /**%0A     *%0A     */%0A    @Override%0A    @PostConstruct%0A    public void initialize()%0A    %7B%0A        super.initialize(genderDataBean
+public Gender%5B%5D getGenders()%0A    %7B%0A        return Gender.values(
 );%0A 
@@ -737,8 +737,9 @@
 %0A    %7D%0A%7D
+%0A

Update GenderBean.java