1717
1818package io .objectbox ;
1919
20- // Copied from generated tests (& removed some unused Properties)
21-
2220import io .objectbox .TestEntityCursor .Factory ;
2321import io .objectbox .annotation .apihint .Internal ;
2422import io .objectbox .internal .CursorFactory ;
2523import io .objectbox .internal .IdGetter ;
2624
25+ // NOTE: Copied from a plugin project (& removed some unused Properties).
26+ // THIS CODE IS GENERATED BY ObjectBox, DO NOT EDIT.
27+
2728/**
2829 * Properties for entity "TestEntity". Can be used for QueryBuilder and for referencing DB names.
2930 */
@@ -33,6 +34,8 @@ public final class TestEntity_ implements EntityInfo<TestEntity> {
3334
3435 public static final String __ENTITY_NAME = "TestEntity" ;
3536
37+ public static final int __ENTITY_ID = 1 ;
38+
3639 public static final Class <TestEntity > __ENTITY_CLASS = TestEntity .class ;
3740
3841 public static final String __DB_NAME = "TestEntity" ;
@@ -44,44 +47,65 @@ public final class TestEntity_ implements EntityInfo<TestEntity> {
4447
4548 public final static TestEntity_ __INSTANCE = new TestEntity_ ();
4649
47- public final static Property <TestEntity > id = new Property <>(__INSTANCE , 0 , 1 , long .class , "id" , true , "id" );
48- public final static Property <TestEntity > simpleBoolean = new Property <>(__INSTANCE , 1 , 2 , boolean .class , "simpleBoolean" , false , "simpleBoolean" );
49- public final static Property <TestEntity > simpleByte = new Property <>(__INSTANCE , 2 , 3 , byte .class , "simpleByte" , false , "simpleByte" );
50- public final static Property <TestEntity > simpleShort = new Property <>(__INSTANCE , 3 , 4 , short .class , "simpleShort" , false , "simpleShort" );
51- public final static Property <TestEntity > simpleInt = new Property <>(__INSTANCE , 4 , 5 , int .class , "simpleInt" , false , "simpleInt" );
52- public final static Property <TestEntity > simpleLong = new Property <>(__INSTANCE , 5 , 6 , long .class , "simpleLong" , false , "simpleLong" );
53- public final static Property <TestEntity > simpleFloat = new Property <>(__INSTANCE , 6 , 7 , float .class , "simpleFloat" , false , "simpleFloat" );
54- public final static Property <TestEntity > simpleDouble = new Property <>(__INSTANCE , 7 , 8 , double .class , "simpleDouble" , false , "simpleDouble" );
55- public final static Property <TestEntity > simpleString = new Property <>(__INSTANCE , 8 , 9 , String .class , "simpleString" , false , "simpleString" );
56- public final static Property <TestEntity > simpleByteArray = new Property <>(__INSTANCE , 9 , 10 , byte [].class , "simpleByteArray" , false , "simpleByteArray" );
50+ public final static io .objectbox .Property <TestEntity > id =
51+ new io .objectbox .Property <>(__INSTANCE , 0 , 1 , long .class , "id" , true , "id" );
52+
53+ public final static io .objectbox .Property <TestEntity > simpleBoolean =
54+ new io .objectbox .Property <>(__INSTANCE , 1 , 2 , boolean .class , "simpleBoolean" );
55+
56+ public final static io .objectbox .Property <TestEntity > simpleByte =
57+ new io .objectbox .Property <>(__INSTANCE , 2 , 3 , byte .class , "simpleByte" );
58+
59+ public final static io .objectbox .Property <TestEntity > simpleShort =
60+ new io .objectbox .Property <>(__INSTANCE , 3 , 4 , short .class , "simpleShort" );
61+
62+ public final static io .objectbox .Property <TestEntity > simpleInt =
63+ new io .objectbox .Property <>(__INSTANCE , 4 , 5 , int .class , "simpleInt" );
64+
65+ public final static io .objectbox .Property <TestEntity > simpleLong =
66+ new io .objectbox .Property <>(__INSTANCE , 5 , 6 , long .class , "simpleLong" );
67+
68+ public final static io .objectbox .Property <TestEntity > simpleFloat =
69+ new io .objectbox .Property <>(__INSTANCE , 6 , 7 , float .class , "simpleFloat" );
70+
71+ public final static io .objectbox .Property <TestEntity > simpleDouble =
72+ new io .objectbox .Property <>(__INSTANCE , 7 , 8 , double .class , "simpleDouble" );
73+
74+ public final static io .objectbox .Property <TestEntity > simpleString =
75+ new io .objectbox .Property <>(__INSTANCE , 8 , 9 , String .class , "simpleString" );
76+
77+ public final static io .objectbox .Property <TestEntity > simpleByteArray =
78+ new io .objectbox .Property <>(__INSTANCE , 9 , 10 , byte [].class , "simpleByteArray" );
5779
5880 @ SuppressWarnings ("unchecked" )
59- public final static Property <TestEntity >[] __ALL_PROPERTIES = new Property []{
81+ public final static io . objectbox . Property <TestEntity >[] __ALL_PROPERTIES = new io . objectbox . Property []{
6082 id ,
61- simpleInt ,
83+ simpleBoolean ,
84+ simpleByte ,
6285 simpleShort ,
86+ simpleInt ,
6387 simpleLong ,
64- simpleString ,
6588 simpleFloat ,
66- simpleBoolean ,
89+ simpleDouble ,
90+ simpleString ,
6791 simpleByteArray
6892 };
6993
70- public final static Property <TestEntity > __ID_PROPERTY = id ;
94+ public final static io . objectbox . Property <TestEntity > __ID_PROPERTY = id ;
7195
7296 @ Override
7397 public String getEntityName () {
7498 return __ENTITY_NAME ;
7599 }
76100
77101 @ Override
78- public Class < TestEntity > getEntityClass () {
79- return __ENTITY_CLASS ;
102+ public int getEntityId () {
103+ return __ENTITY_ID ;
80104 }
81105
82106 @ Override
83- public int getEntityId () {
84- return 1 ;
107+ public Class < TestEntity > getEntityClass () {
108+ return __ENTITY_CLASS ;
85109 }
86110
87111 @ Override
@@ -90,12 +114,12 @@ public String getDbName() {
90114 }
91115
92116 @ Override
93- public Property <TestEntity >[] getAllProperties () {
117+ public io . objectbox . Property <TestEntity >[] getAllProperties () {
94118 return __ALL_PROPERTIES ;
95119 }
96120
97121 @ Override
98- public Property <TestEntity > getIdProperty () {
122+ public io . objectbox . Property <TestEntity > getIdProperty () {
99123 return __ID_PROPERTY ;
100124 }
101125
@@ -111,6 +135,7 @@ public CursorFactory<TestEntity> getCursorFactory() {
111135
112136 @ Internal
113137 static final class TestEntityIdGetter implements IdGetter <TestEntity > {
138+ @ Override
114139 public long getId (TestEntity object ) {
115140 return object .getId ();
116141 }
0 commit comments