This example shows how to use the Sync client using the Java SDK in a JVM console application.
- See
Task
on how to define a simple entity - See
TasksSyncDB
on how to set up Sync and perform basic database operations withTask
Note
This project is set up both as a default Gradle multi-project build and a Maven build.
-
Open this directory. Choose to open as Gradle or Maven project. In any case, the project should sync and is then ready to build.
-
To build and run the application, run
Main.java
.
-
Open this directory.
-
To build and run the application, run the following command:
Using Gradle:
./gradlew run
Using Maven:
./mvnw compile exec:java