Skip to content

Commit 8d3f621

Browse files
committed
EntityFlags: add SYNC_ENABLED
1 parent be20a77 commit 8d3f621

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

objectbox-java/src/main/java/io/objectbox/model/EntityFlags.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ private EntityFlags() { }
2727
* Use the default (no arguments) constructor to create entities
2828
*/
2929
public static final int USE_NO_ARG_CONSTRUCTOR = 1;
30+
/**
31+
* Enable "data synchronization" for this entity type: objects will be synced with other stores over the network.
32+
* It's possible to have local-only (non-synced) types and synced types in the same store (schema/data model).
33+
*/
34+
public static final int SYNC_ENABLED = 2;
3035

31-
public static final String[] names = { "USE_NO_ARG_CONSTRUCTOR", };
36+
public static final String[] names = { "USE_NO_ARG_CONSTRUCTOR", "SYNC_ENABLED", };
3237

3338
public static String name(int e) { return names[e - USE_NO_ARG_CONSTRUCTOR]; }
3439
}

0 commit comments

Comments
 (0)