There is no more such a thing since java 7 or 8 since java reflection doesn't provide you any guarantee on the ordering. But the comparator allows you to control the order exactly as desired (we often use that for tests to be able to assert output string).
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-08-03 10:47 GMT+02:00 gchauvet <[email protected]>: > Yes, I'm not very clear on this point : > I wanted to say keeping the order of declaration of my attributes in my > classes > > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/ejb-restful-Customize-JSON-XML-generation-tp4679564p4679595.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
