|
1 | 1 | <img width="466" src="https://raw.githubusercontent.com/objectbox/objectbox-java/master/logo.png"> |
2 | 2 |
|
3 | 3 | # ObjectBox Java (Kotlin, Android) |
4 | | -ObjectBox is a superfast object-oriented database with strong relation support. |
| 4 | +ObjectBox is a superfast object-oriented database with strong relation support. ObjectBox is embedded into your Android, Linux, macOS, or Windows app. |
5 | 5 |
|
6 | 6 | **Latest version: [1.4.3 (2018/03/01)](http://objectbox.io/changelog)** |
7 | 7 |
|
@@ -36,14 +36,19 @@ apply plugin: 'io.objectbox' // after applying Android plugin |
36 | 36 |
|
37 | 37 | First steps |
38 | 38 | ----------- |
| 39 | +Create data object class `@Entity`, for example "Playlist". |
| 40 | +```java |
| 41 | +@Entity public class Playlist { ... } |
| 42 | +``` |
| 43 | +Now build the project to let ObjectBox generate the class `MyObjectBox` for you. |
| 44 | + |
39 | 45 | Prepare the BoxStore object once for your app, e.g. in `onCreate` in your Application class: |
40 | 46 |
|
41 | 47 | ```java |
42 | 48 | boxStore = MyObjectBox.builder().androidContext(this).build(); |
43 | 49 | ``` |
44 | 50 |
|
45 | | -Create data object class `@Entity`, for example "Playlist". |
46 | | -Then get a `Box` class for this entity class: |
| 51 | +Then get a `Box` class for the Playlist entity class: |
47 | 52 |
|
48 | 53 | ```java |
49 | 54 | Box<Playlist> box = boxStore.boxFor(Playlist.class); |
@@ -71,7 +76,7 @@ Thanks! |
71 | 76 |
|
72 | 77 | License |
73 | 78 | ------- |
74 | | - Copyright 2017 ObjectBox Ltd. All rights reserved. |
| 79 | + Copyright 2017-2018 ObjectBox Ltd. All rights reserved. |
75 | 80 |
|
76 | 81 | Licensed under the Apache License, Version 2.0 (the "License"); |
77 | 82 | you may not use this file except in compliance with the License. |
|
0 commit comments