Added support for the @Enumerated annotation. Before toString was being ...

...used for all enum values but this has changed to be consistent with JPA. Only when @Enumerated(EnumType.STRING) is specified will it use Enum.name() and for all other cases Enum.ordinal() is used.