users@jersey.java.net

Re: [Jersey] Re: generic _at_PathParam??

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 24 Aug 2009 08:14:00 +0200

> * trying
>
>> public T select(@PathParam("id") Object login) {
>
> also doesn't work ...

Right, because Object does not give enough information on what type to
inject.


On Aug 22, 2009, at 1:22 PM, Felipe Gaścho wrote:

> I finally adopted "String" as generic type, and by luck it seems to
> work with the EntityManager :)
>
> but I would love to have it in generic format (supporting eventually
> JPA @Embeddable keys)
>

Could you log an issue (when java.net is back up) ?

This will require that type variables are resolved at the level of the
abstract model to ensure injection will work in all cases.

Paul.

> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>