I have a javafx desktop application with sqlite database, and I want to synchronize it with mysql database, witch run on a server
I want to save data offline with sqlite database, but if there is internet connexion, it will be syncronized with mysql server (online server)
I'm wandering if there is a simple solution for this, and also, how can I secure the server from hackers attack.