File tree Expand file tree Collapse file tree
objectbox-java/src/main/java/io/objectbox Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5858 * <pre>{@code
5959 * // Java
6060 * @Entity
61- * public class Student{
61+ * public class Student {
6262 * private ToMany<Teacher> teachers;
6363 * }
6464 *
8585 * <p>
8686 * To apply (persist) the changes to the database, call {@link #applyChangesToDb()} or put the object with the ToMany.
8787 * For important details, see the notes about relations of {@link Box#put(Object)}.
88- * <p>
8988 * <pre>{@code
9089 * // Example 1: add target objects to a relation
9190 * student.getTeachers().add(teacher1);
Original file line number Diff line number Diff line change 6161 * </ul>
6262 * <p>
6363 * Then, to persist the changes {@link Box#put} the object with the ToOne.
64- * <p>
6564 * <pre>{@code
6665 * // Example 1: create a relation
6766 * order.getCustomer().setTarget(customer);
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public static boolean isServerAvailable() {
4444 }
4545
4646 /**
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).
4848 */
4949 public static boolean isHybridAvailable () {
5050 return isAvailable () && isServerAvailable ();
Original file line number Diff line number Diff line change 2525public final class SyncFlags {
2626 private SyncFlags () { }
2727 /**
28- * Enable (rather extensive) logging on how IDs are mapped (local <-> global)
28+ * Enable (rather extensive) logging on how IDs are mapped (local <-> global)
2929 */
3030 public static final int DebugLogIdMapping = 1 ;
3131 /**
Original file line number Diff line number Diff line change 2424/**
2525 * Combines the functionality of a Sync client and a Sync server.
2626 * <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).
2828 * <p>
2929 * Call {@link #getStore()} to retrieve the store. To set sync listeners use the {@link SyncClient} that is available
3030 * from {@link #getClient()}.
You can’t perform that action at this time.
0 commit comments