2323
2424import javax .annotation .Nullable ;
2525
26- /** In "real" entity would be annotated with @Entity. */
26+ import io .objectbox .annotation .Entity ;
27+ import io .objectbox .annotation .Id ;
28+ import io .objectbox .annotation .Unsigned ;
29+
30+ /**
31+ * The annotations in this class have no effect as the Gradle plugin is not configured in this project. However, test
32+ * code builds a model like if the annotations were processed.
33+ * <p>
34+ * There is a matching test in the internal integration test project where this is tested and model builder code can be
35+ * "stolen" from.
36+ */
37+ @ Entity
2738public class TestEntity {
2839
2940 public static final String STRING_VALUE_THROW_IN_CONSTRUCTOR =
@@ -32,7 +43,7 @@ public class TestEntity {
3243 public static final String EXCEPTION_IN_CONSTRUCTOR_MESSAGE =
3344 "Hello, this is an exception from TestEntity constructor" ;
3445
35- /** In "real" entity would be annotated with @Id. */
46+ @ Id
3647 private long id ;
3748 private boolean simpleBoolean ;
3849 private byte simpleByte ;
@@ -47,11 +58,11 @@ public class TestEntity {
4758 /** Not-null value. */
4859 private String [] simpleStringArray ;
4960 private List <String > simpleStringList ;
50- /** In "real" entity would be annotated with @Unsigned. */
61+ @ Unsigned
5162 private short simpleShortU ;
52- /** In "real" entity would be annotated with @Unsigned. */
63+ @ Unsigned
5364 private int simpleIntU ;
54- /** In "real" entity would be annotated with @Unsigned. */
65+ @ Unsigned
5566 private long simpleLongU ;
5667 private Map <String , Object > stringObjectMap ;
5768 private Object flexProperty ;
0 commit comments