users@jersey.java.net

Re: how to serialize enumerations ? (Jersey Client)

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Wed, 28 Oct 2009 21:55:14 +0100

I tried:

        @XmlEnum
        public enum CompetitionStatus {
                @XmlEnumValue("NEW") NEW,
                @XmlEnumValue("CALL_FOR_PAPERS") CALL_FOR_PAPERS,
                @XmlEnumValue("EVALUATION") EVALUATION,
                @XmlEnumValue("HISTORY") HISTORY
        }


and it continue to fail ...

------- the entity class:
http://kenai.com/projects/puj/sources/arena/content/arena-model/src/main/java/com/kenai/puj/arena/model/entity/PujCompetitionEntity.java

------- the Jersey Client code:

http://kenai.com/projects/puj/sources/arena/content/arena-dwr/src/main/java/com/kenai/puj/arena/web/dwr/ListHomeworks.java



* for now, I turned the reference to the entity transient in the
homework list.. but I plan to map this issue to other cases...