File tree Expand file tree Collapse file tree 5 files changed +4
-6
lines changed
objectbox-java/src/main/java/io/objectbox Expand file tree Collapse file tree 5 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 58
58
* <pre>{@code
59
59
* // Java
60
60
* @Entity
61
- * public class Student{
61
+ * public class Student {
62
62
* private ToMany<Teacher> teachers;
63
63
* }
64
64
*
85
85
* <p>
86
86
* To apply (persist) the changes to the database, call {@link #applyChangesToDb()} or put the object with the ToMany.
87
87
* For important details, see the notes about relations of {@link Box#put(Object)}.
88
- * <p>
89
88
* <pre>{@code
90
89
* // Example 1: add target objects to a relation
91
90
* student.getTeachers().add(teacher1);
Original file line number Diff line number Diff line change 61
61
* </ul>
62
62
* <p>
63
63
* Then, to persist the changes {@link Box#put} the object with the ToOne.
64
- * <p>
65
64
* <pre>{@code
66
65
* // Example 1: create a relation
67
66
* order.getCustomer().setTarget(customer);
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public static boolean isServerAvailable() {
44
44
}
45
45
46
46
/**
47
- * Returns true if the included native (JNI) ObjectBox library supports Sync hybrids (server & client).
47
+ * Returns true if the included native (JNI) ObjectBox library supports Sync hybrids (server and client).
48
48
*/
49
49
public static boolean isHybridAvailable () {
50
50
return isAvailable () && isServerAvailable ();
Original file line number Diff line number Diff line change 25
25
public final class SyncFlags {
26
26
private SyncFlags () { }
27
27
/**
28
- * Enable (rather extensive) logging on how IDs are mapped (local <-> global)
28
+ * Enable (rather extensive) logging on how IDs are mapped (local <-> global)
29
29
*/
30
30
public static final int DebugLogIdMapping = 1 ;
31
31
/**
Original file line number Diff line number Diff line change 24
24
/**
25
25
* Combines the functionality of a Sync client and a Sync server.
26
26
* <p>
27
- * It is typically used in local cluster setups, in which a "hybrid" functions as a client & cluster peer (server).
27
+ * It is typically used in local cluster setups, in which a "hybrid" functions as a client and cluster peer (server).
28
28
* <p>
29
29
* Call {@link #getStore()} to retrieve the store. To set sync listeners use the {@link SyncClient} that is available
30
30
* from {@link #getClient()}.
You can’t perform that action at this time.
0 commit comments