users@jersey.java.net

Re: [Jersey] How To ? POST to Generated Resources with 1-N relationship ????

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 23 Jun 2009 09:57:19 +0200

On Jun 22, 2009, at 9:23 PM, Craig McClanahan wrote:
>>
>> It seems that jersey implementation is requiring URI. Not
>> specifying an URI for relationship elements causes
>> javax.ws.rs.WebApplicationException: java.lang.RuntimeException: No
>> uri specified in a reference
>>
>> So, After experimenting a bit, it appears than only URI is
>> required, as in this sample
>>
>> <purchase uri="http://localhost:8080/iFidelity/resources/purchases
>> ">
>> <amount>30.000</amount>
>> <buyDate>2009-06-05</buyDate>
>> <cardId uri="http://localhost:8080/iFidelity/resources/cards/3/
>> "/>
>> </purchase >
>>
> Ah ... I must confess that I gave up on the NB code generators for
> JAX-RS resource classes, because I didn't like some of the things
> that code does. But I haven't looked at this since the early 6.5
> days, so maybe things have improved.
>

Unfortunately not, there has not really bean any further work in this
area. Note that this area was developed by a NB tooling team and not
the Jersey team. The NB team moved on to do something different, so
this NB feature is not really being progressed further.

Paul.