Lukas, wdyt IMO better to have two quickstarts for this...
On 25 Sep 2012, at 12:19, Ondrej Zizka wrote:
> JBoss AS Quickstarts: Tasks JAX-RS = jboss-as-tasks-rs
>
> model/Task.java
>
> @XmlTransient
> // JSON: uncomment to include json support (note json is not part of the JAX-RS standard)
> // @JsonIgnore
> public User getOwner() {
> return owner;
> }
>
>
>
> O.
>
>
>
>
> On Mon, 2012-09-24 at 14:41 +0100, Pete Muir wrote:
>> Which quickstart is this?
>>
>> On 22 Sep 2012, at 12:01, Ondřej Žižka wrote:
>>
>> > Hmm, so that wasn't exact.
>> > RestEasy in AS uses Jackson, but that's not in QS's pom.xml, so JsonIgnore is the one to use, but needs (probably)
>> >
>> > <dependency>
>> > <groupId>org.codehaus.jackson</groupId>
>> > <artifactId>jackson-core-asl</artifactId>
>> > <version>1.9.2</version>
>> > <scope>provided</scope>
>> > </dependency>
>> >
>> > To be added.
>> > I wonder how to change the provider in AS - probably by removing the respective provider's module?
>> >
>> > Ondra
>> >
>> >
>> >
>> >
>> > Ondřej Žižka píše v So 22. 09. 2012 v 08:47 +0200:
>> >> Seems like it doesn't belong there. RestEasy relies on JAXB's @XmlTransient and uses that for all providers, incl. Jackson.
>> >>
>> >> Ondra
>> >>
>> >>
>> >>
>> >> Ondřej Žižka píše v So 22. 09. 2012 v 04:27 +0200:
>> >>> Hi Pete,
>> >>>
>> >>> this is in the JAX-RS QS:
>> >>>
>> >>> @XmlTransient
>> >>> // JSON: uncomment to include json support (note json is not part of the JAX-RS standard)
>> >>> //@JsonIgnore
>> >>> public User getOwner() {
>> >>> return owner;
>> >>> }
>> >>>
>> >>> I didn't find JsonIgnore anywhere else than Jackson. It's not in Quickstart's deps.
>> >>> I've checked public API (wow, it's actually useful! :) and it's not there.
>> >>>
>> >>> So - does @JsonIgnore even belong there?
>> >>>
>> >>> Thanks,
>> >>> Ondra
>> >>> _______________________________________________
>> >>> jdf-dev mailing list
>> >>>
>> >>>
>> jdf-dev@lists.jboss.org
>>
>> >>>
>> https://lists.jboss.org/mailman/listinfo/jdf-dev
>>
>> >>
>> >
>>
>>
>