Also, making it required doesn't mean that it is not null during validation. It will only be not null for sure in the execute() method

> Em 13/04/2014, às 10:14, Robert Balent <notifications@github.com> escreveu:
> 
> In javaee/impl/src/main/java/org/jboss/forge/addon/javaee/jpa/ui/NewFieldWizard.java:
> 
> > @@ -214,9 +221,22 @@ public Boolean call() throws Exception
> >                       && (Date.class.getName().equals(typeValue) || Calendar.class.getName().equals(typeValue));
> >           }
> >        });
> > +
> > +      enumType.setEnabled(new Callable<Boolean>() {
> > +
> > +         @Override
> > +         public Boolean call() throws Exception
> > +         {
> > +            JavaClassSource targetEntityType = targetEntity.getValue().getJavaType();
> targetEntity is marked as required, it should be not possible to have here Runtime exception.
> 
> —
> Reply to this email directly or view it on GitHub.