11/*
2- * Copyright 2017-2024 ObjectBox Ltd. All rights reserved.
2+ * Copyright 2017-2025 ObjectBox Ltd. All rights reserved.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -66,6 +66,7 @@ public Cursor<TestEntity> createCursor(io.objectbox.Transaction tx, long cursorH
6666 private final static int __ID_simpleLongU = TestEntity_ .simpleLongU .id ;
6767 private final static int __ID_stringObjectMap = TestEntity_ .stringObjectMap .id ;
6868 private final static int __ID_flexProperty = TestEntity_ .flexProperty .id ;
69+ private final static int __ID_booleanArray = TestEntity_ .booleanArray .id ;
6970 private final static int __ID_shortArray = TestEntity_ .shortArray .id ;
7071 private final static int __ID_charArray = TestEntity_ .charArray .id ;
7172 private final static int __ID_intArray = TestEntity_ .intArray .id ;
@@ -92,41 +93,47 @@ public long getId(TestEntity entity) {
9293 @ SuppressWarnings ({"rawtypes" , "unchecked" })
9394 @ Override
9495 public long put (TestEntity entity ) {
96+ boolean [] booleanArray = entity .getBooleanArray ();
97+ int __id17 = booleanArray != null ? __ID_booleanArray : 0 ;
98+
99+ collectBooleanArray (cursor , 0 , PUT_FLAG_FIRST ,
100+ __id17 , booleanArray );
101+
95102 short [] shortArray = entity .getShortArray ();
96- int __id17 = shortArray != null ? __ID_shortArray : 0 ;
103+ int __id18 = shortArray != null ? __ID_shortArray : 0 ;
97104
98- collectShortArray (cursor , 0 , PUT_FLAG_FIRST ,
99- __id17 , shortArray );
105+ collectShortArray (cursor , 0 , 0 ,
106+ __id18 , shortArray );
100107
101108 char [] charArray = entity .getCharArray ();
102- int __id18 = charArray != null ? __ID_charArray : 0 ;
109+ int __id19 = charArray != null ? __ID_charArray : 0 ;
103110
104111 collectCharArray (cursor , 0 , 0 ,
105- __id18 , charArray );
112+ __id19 , charArray );
106113
107114 int [] intArray = entity .getIntArray ();
108- int __id19 = intArray != null ? __ID_intArray : 0 ;
115+ int __id20 = intArray != null ? __ID_intArray : 0 ;
109116
110117 collectIntArray (cursor , 0 , 0 ,
111- __id19 , intArray );
118+ __id20 , intArray );
112119
113120 long [] longArray = entity .getLongArray ();
114- int __id20 = longArray != null ? __ID_longArray : 0 ;
121+ int __id21 = longArray != null ? __ID_longArray : 0 ;
115122
116123 collectLongArray (cursor , 0 , 0 ,
117- __id20 , longArray );
124+ __id21 , longArray );
118125
119126 float [] floatArray = entity .getFloatArray ();
120- int __id21 = floatArray != null ? __ID_floatArray : 0 ;
127+ int __id22 = floatArray != null ? __ID_floatArray : 0 ;
121128
122129 collectFloatArray (cursor , 0 , 0 ,
123- __id21 , floatArray );
130+ __id22 , floatArray );
124131
125132 double [] doubleArray = entity .getDoubleArray ();
126- int __id22 = doubleArray != null ? __ID_doubleArray : 0 ;
133+ int __id23 = doubleArray != null ? __ID_doubleArray : 0 ;
127134
128135 collectDoubleArray (cursor , 0 , 0 ,
129- __id22 , doubleArray );
136+ __id23 , doubleArray );
130137
131138 String [] simpleStringArray = entity .getSimpleStringArray ();
132139 int __id10 = simpleStringArray != null ? __ID_simpleStringArray : 0 ;
@@ -145,26 +152,26 @@ public long put(TestEntity entity) {
145152 byte [] simpleByteArray = entity .getSimpleByteArray ();
146153 int __id9 = simpleByteArray != null ? __ID_simpleByteArray : 0 ;
147154 byte [] externalId = entity .getExternalId ();
148- int __id24 = externalId != null ? __ID_externalId : 0 ;
155+ int __id25 = externalId != null ? __ID_externalId : 0 ;
149156 Map stringObjectMap = entity .getStringObjectMap ();
150157 int __id15 = stringObjectMap != null ? __ID_stringObjectMap : 0 ;
151158
152159 collect430000 (cursor , 0 , 0 ,
153160 __id8 , simpleString , 0 , null ,
154161 0 , null , 0 , null ,
155- __id9 , simpleByteArray , __id24 , externalId ,
162+ __id9 , simpleByteArray , __id25 , externalId ,
156163 __id15 , __id15 != 0 ? stringObjectMapConverter .convertToDatabaseValue (stringObjectMap ) : null );
157164
158165 Object flexProperty = entity .getFlexProperty ();
159166 int __id16 = flexProperty != null ? __ID_flexProperty : 0 ;
160167 java .util .Date date = entity .getDate ();
161- int __id23 = date != null ? __ID_date : 0 ;
168+ int __id24 = date != null ? __ID_date : 0 ;
162169
163170 collect313311 (cursor , 0 , 0 ,
164171 0 , null , 0 , null ,
165172 0 , null , __id16 , __id16 != 0 ? flexPropertyConverter .convertToDatabaseValue (flexProperty ) : null ,
166173 __ID_simpleLong , entity .getSimpleLong (), __ID_simpleLongU , entity .getSimpleLongU (),
167- __id23 , __id23 != 0 ? date .getTime () : 0 , INT_NULL_HACK ? 0 : __ID_simpleInt , entity .getSimpleInt (),
174+ __id24 , __id24 != 0 ? date .getTime () : 0 , INT_NULL_HACK ? 0 : __ID_simpleInt , entity .getSimpleInt (),
168175 __ID_simpleIntU , entity .getSimpleIntU (), __ID_simpleShort , entity .getSimpleShort (),
169176 __ID_simpleFloat , entity .getSimpleFloat (), __ID_simpleDouble , entity .getSimpleDouble ());
170177
0 commit comments