enum « Eclipse « JPA Q&A





1. JPA @Enumerated Error    stackoverflow.com

I have a Entity with a field which I want to be an Enum.

@Column(name = "TEMPRATURE_ZONE")
@Enumerated(STRING)
private TemperatureRegime tempratureZone;
The Enum is defined as follows:
public enum TemperatureRegime {
    AMBIENT,
 ...

2. jaxws and EclipseLink refuses to use enums from lib    stackoverflow.com

This might sound like a basic question, but I really don't understand why what I'm facing is a problem. I have a maven multimodule project with a ejb with a webservice, ...

3. JPA Enum ORDINAL vs STRING    stackoverflow.com

Its is possible to define enumerations in JPA either using

@Enumerated(EnumType.ORDINAL)
or
@Enumerated(EnumType.STRING)
I wonder what are advantages and disadvantages of those two definitions? I heard that ORDINAL performs better (is faster) than STRING with ...