JAXB Support?

59 views
Skip to first unread message

Filip

unread,
Feb 8, 2011, 11:25:16 AM2/8/11
to Piriti
Hi,
thank you for all the work you done, but what about JAXB support? Is
there any progress?

Anyway, I would appreciate another mapping (xml/json) behaviour, like
JAXB, JPA, .... [De]Serialialize a class as a bean without need to
explicitely annotate each property with @XML, @Json. Just take all
properties as there are, and ignore only properties that are annoted
with 'ignore annotation' (e.g. @Transient). It's more common and there
is no need to introduce another custom annotations for basic
[de]serialization.

Best regards
Filip Kolarik

Harald Pehl

unread,
Feb 9, 2011, 3:15:04 AM2/9/11
to pir...@googlegroups.com
Hi Filip,

right now development is going rather slow. Unfortunalty I'm quite busy with my regular job. The class level annotation is on my list for the next version and shouldn't be hard to implement. Regarding JAXB support: This might take some time....

- Harald

Filip Kolarik

unread,
Feb 9, 2011, 3:41:57 AM2/9/11
to piriti
Hi Harald,
thanks for the info. I would like use piriti with GWT on client side and reuse already written, and annotated, server resource classes. Thats the reason.

btw. Is there any comparsion on speed, etc.? Just asking because of your project  totoe which is also interesting.

Best regards
Filip
Message has been deleted

Ruchir Sanghavi

unread,
Jul 13, 2012, 11:09:21 AM7/13/12
to pir...@googlegroups.com
Hi Herald,

Is their an example on how JAXB works using Piriti? 

Thanks,
Ruchir

Harald Pehl

unread,
Jul 15, 2012, 2:11:33 PM7/15/12
to pir...@googlegroups.com
Hi,

currently there's no dedicated support of JAXB in Piriti. But as the default behaviour of JAXB and Piriti is very similar, you can use JAXB annotated classes on the client side. At the moment Piriti will just ignore the JAXB annotations and deserialize the JSON using its own defaults. This works smoothly as long as you don' use any special features of JAXB. 

Take a look at https://code.google.com/p/tire-d8/. I'm using a combination of JAXB on the server side and Piriti on the client side. Feel free to take a look into the code. If you have any questions don't hesitate to aks.

- Harald

Griffin Wilson

unread,
Jan 18, 2013, 2:45:46 PM1/18/13
to pir...@googlegroups.com
Where did this example go? the link ends with a 404 error. Is there anywhere else I can take a look of an example of using jaxb on the client side with piriti? I love the project

Thanks so much
Griffin

Harald Pehl

unread,
Jan 19, 2013, 8:11:08 AM1/19/13
to pir...@googlegroups.com
I moved all of my projects to github: https://github.com/hpehl

The app where I use JAXB on the server side and Piriti on the client side is called 'karaka': https://github.com/hpehl/karaka. Feel free to take a look into the code. If you have any questions don't hesitate to ask.
Reply all
Reply to author
Forward
0 new messages