I'm doing an API in java to be consumed by Excel. I'm doing a select from the bank bringing the columns in the right order, but when it arrives in Excel comes in a crazy order.
I also made a method with:
Class.forName("className").getDeclaredMethods.getName();
To get the names of the "get" methods of this entity class (eg, Person, Client) and these names are coming out of order as well. They are coming in the same order as the columns in json.
have some way to do the
Class.forName("className").getDeclaredMethods.getName();
maintaining the order of the methods of the class? and keep the select order in json?