Skip to content

Latest commit

 

History

History

java-main-sync

ObjectBox Sync example on JVM

This example shows how to use the Sync client in a console-based Java application.

  • See Task on how to define a simple entity
  • See TasksSyncDB to perform basic operations on Task with the Sync client

Setup

It is recommended to build and run this project using Gradle.

For example, from the root of this repository run:

./gradlew java-main-sync:run

However, this directory also contains a pom.xml to build and run this project using Maven.

For example, from this directory run:

./mvnw compile exec:java

For details about how to set up a project with the ObjectBox Maven plugin, see the java-main-maven example.

Docs