users@jsonb-spec.java.net

[jsonb-spec users] Re: [jsr367-experts] Re: Re: [2-DefaultMapping] Proposal

From: Przemyslaw Bielicki <pbielicki_at_gmail.com>
Date: Mon, 16 Mar 2015 14:03:53 +0100

>
> 1. Do we rellly want to specify ordering of POJO fields based on
> lexicographic order of field names?
> I think better rely on fields order of appearance in class as it done in
> Gson.
>

Eugen is completely right here. The order is nor guaranteed in runtime.


>
> 2. Inheritance, order of fields. Should we specify default order of
> fields when using inheritance? Which field set is to be first - fields of
> subclass or fields of superclass? In gson superclass fields go first.
>

Good point. As usual let's come up with a reasonable and proved default +
@Annotation to override it for advanced users.


> 4. Lets add examples for POJO classes wth Collections/Arrays fields (one
> to many relation).
>
>
I think you're more than welcome to commit you changes :)

Cheers,
Przemyslaw