I want a custom sequence in my xml response
rather than alphabetical. It's mostly alphabetical order but with few exceptions.
So, I ended up using propOrder in @XmlType
annotation as a solution.
Now the problem is in few classes I've around 50 fields. Adding a propOrder
for such classes is hectic to code. If there is anyway propOrder
values can be generated with default values, lets say in alphabetical order, I will be able change the sequence later.
Any solution would be appreciated, thanks.