Gray

Results 153 comments of Gray

Thanks. I appreciate the work. Yeah I'd rather test for existence of the function and the includes as opposed to a compiler symbol.

If I run [QueryBuilderTest.testInnerCountOf()](https://github.com/j256/ormlite-core/blob/2ba2e6a518f7cad08c93f391a3e39de4310d39d1/src/test/java/com/j256/ormlite/stmt/QueryBuilderTest.java#L488), I see the following: CREATE TABLE `foo` (`id` INTEGER AUTO_INCREMENT , `val` INTEGER , `equal` INTEGER , `string` VARCHAR(255) , PRIMARY KEY (`id`) ) INSERT INTO...

Not according to the javadocs: https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html#getDeclaredFields-- > The elements in the returned array are not sorted and are not in any particular order." That was my OSX Java 8. Same...

Not sure what to do. You can configure your classes using code. See here: https://ormlite.com/docs/config-code

You might also want to look at the table-config file that was an early Android hack when the annotation parsing was _dog_ slow: https://ormlite.com/docs/table-config

Lastly, I'm curious why the sorted order is getting in your way? What part of the system doesn't work if the fields are sorted by the JVM?

Yes, ormlite does nothing to the field order. You posted the code above. No `Collections.sort()`.

Should the order field in `@DatabaseFIeld` be a integer number or would it be `String afterColumn`?

Funny example! My "brand" nemesis. I just thought that if you were creating the class and adding fields you would be always running around changing the numbers. Adding a 2nd...