Skip to content

Commit a3e68b1

Browse files
greenrobot-teamgreenrobot
authored andcommitted
Add Sync annotation.
1 parent b967dff commit a3e68b1

File tree

1 file changed

+17
-0
lines changed
  • objectbox-java-api/src/main/java/io/objectbox/annotation

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package io.objectbox.annotation;
2+
3+
import java.lang.annotation.ElementType;
4+
import java.lang.annotation.Retention;
5+
import java.lang.annotation.RetentionPolicy;
6+
import java.lang.annotation.Target;
7+
8+
/**
9+
* Enables sync for an {@link Entity} class.
10+
* <p>
11+
* Note that currently sync can not be enabled or disabled for existing entities.
12+
* Also synced entities can not have relations to non-synced entities.
13+
*/
14+
@Retention(RetentionPolicy.CLASS)
15+
@Target(ElementType.TYPE)
16+
public @interface Sync {
17+
}

0 commit comments

Comments
 (0)