Update is not working

12 views
Skip to first unread message

Tomáš Pavel

unread,
Dec 14, 2014, 12:07:47 PM12/14/14
to ormli...@googlegroups.com
Hi,
I have problems with update to SQLite DB with ORMLite 4.45 from Maven.

I save objects to DB - dao.createIfNotExists(character);

Then I want to update them all in multiple threads.
final ExecutorService executor = Executors.newFixedThreadPool(16);
for (Character character : dao) {
executor.submit(() -> queryAPI(character));
}
which calls dao.createOrUpdate(character);
But nothing is updated with no expection.

Methods: addChar(), getData(), queryAPI(),

Thank you for help.
Reply all
Reply to author
Forward
0 new messages