users@jersey.java.net

Re: [Jersey] Polymorphic deserialization of JSON?

From: Felipe Gaúcho <fgaucho_at_gmail.com>
Date: Sat, 9 May 2009 15:51:58 +0200

I am doing that.. with subclasses of JPA entities.. it works ..

like that:

http://fgaucho.dyndns.org:8080/footprint-service/user/read/2
http://fgaucho.dyndns.org:8080/footprint-service/user/edit/2

notice the two service calls reads the same entity from the database,
but in one path I have a partial view on the entity, while in the
other path I have the complete representation...

I am trying to finish the articles about that.. despoite the flu and
the time :) eheh

Meanwhile, you can checkout my code from footprint:

svn checkout https://footprint.dev.java.net/svn/footprint/trunk
footprint --username guest
cd footprint
mvn clean install

and then you have the EAR file in the footprint-service/target
folder.. just start the database, the glassfish and then deploy this
ear....

and keep asking here if you like the solution and if you have
questions about it......