Skip to content

objectbox/objectbox-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ObjectBox Java and Kotlin examples

Java and Kotlin examples for ObjectBox (GitHub), the superfast object-oriented database.

For examples in other languages, see the GitHub repository for that language.

Basics

  • android-app-kotlin: a note taking app that shows how to define the data model, indexes and relations, create a store, put and get data, use Admin UI and create unit tests.
  • android-app: a more basic variant of the above written in Java.
  • java-main and kotlin-main: a note taking command-line application that shows how to define the data model, create a store and put and get data.
  • java-main-maven: the above app but using a Maven project (we recommend to use Gradle).
  • java-main-vector-search: a cities and coordinates command-line application that shows how to do on-device ANN vector search.

Using Sync

Other

MyObjectBox missing? Build the project!

When you open the project in an IDE like Android Studio for the first time, it will complain that it does not find the class MyObjectBox. This is expected because this class is generated during build time. Thus, once you build the project, everything should be fine.

Issues and feedback

If you are looking for help with how to use ObjectBox see our documentation.

If you found an issue or have feedback about these examples feel free to submit an issue for objectbox-java.

Links

ObjectBox Documentation

ObjectBox Features

ObjectBox GitHub repository

License

Copyright 2017-2024 ObjectBox Ltd. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.