users@jersey.java.net
Re: [Jersey] Re: how to serialize enumerations ? (Jersey Client)
This message
: [
Message body
] [ More options (
top
,
bottom
) ]
Related messages
: [
Next message
] [
Previous message
] [
In reply to
]
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]
From
: Paul Sandoz <
Paul.Sandoz_at_Sun.COM
>
Date
: Thu, 29 Oct 2009 09:06:54 +0100
On Oct 28, 2009, at 9:55 PM, Felipe Gaścho wrote:
> 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 ...
>
Can you send a stack trace?
I think the problem is because the enum is declared as a (non-static)
inner class.
Paul.
> ------- 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...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
This message
: [
Message body
]
Next message
:
Cameron Jones: "Re: [Jersey] AbstractResources"
Previous message
:
Paul Sandoz: "Re: [Jersey] singleton resources"
In reply to
:
Felipe Gaúcho: "Re: how to serialize enumerations ? (Jersey Client)"
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]