Improve ormlite_config.txt generation with deterministic processing order of annotated class.
This will prevent random ormlite_config.txt modification even if annotated classes has not changed.
This was due to File.listFiles() which does not guaranty any specific order (see javadoc) :
There is no guarantee that the name strings in the resulting array will appear in any specific order; they are not, in particular, guaranteed to appear in alphabetical order.
I would have liked to create some tests, but OrmLiteConfigUtil is not very test friendly. If you know how I can test this, feel free to answer.
Improve
ormlite_config.txt
generation with deterministic processing order of annotated class. This will prevent randomormlite_config.txt
modification even if annotated classes has not changed.This was due to
File.listFiles()
which does not guaranty any specific order (see javadoc) :I would have liked to create some tests, but
OrmLiteConfigUtil
is not very test friendly. If you know how I can test this, feel free to answer.