@@ -34,6 +34,7 @@ public final class ModelProperty extends Table {
3434 public IdUid id (IdUid obj ) { int o = __offset (4 ); return o != 0 ? obj .__assign (o + bb_pos , bb ) : null ; }
3535 public String name () { int o = __offset (6 ); return o != 0 ? __string (o + bb_pos ) : null ; }
3636 public ByteBuffer nameAsByteBuffer () { return __vector_as_bytebuffer (6 , 1 ); }
37+ public ByteBuffer nameInByteBuffer (ByteBuffer _bb ) { return __vector_in_bytebuffer (_bb , 6 , 1 ); }
3738 public int type () { int o = __offset (8 ); return o != 0 ? bb .getShort (o + bb_pos ) & 0xFFFF : 0 ; }
3839 /**
3940 * bit flags: e.g. indexed, not-nullable
@@ -46,20 +47,29 @@ public final class ModelProperty extends Table {
4647 */
4748 public String targetEntity () { int o = __offset (14 ); return o != 0 ? __string (o + bb_pos ) : null ; }
4849 public ByteBuffer targetEntityAsByteBuffer () { return __vector_as_bytebuffer (14 , 1 ); }
50+ public ByteBuffer targetEntityInByteBuffer (ByteBuffer _bb ) { return __vector_in_bytebuffer (_bb , 14 , 1 ); }
4951 /**
5052 * E.g. for virtual to-one target ID properties, this references the ToOne object
5153 */
5254 public String virtualTarget () { int o = __offset (16 ); return o != 0 ? __string (o + bb_pos ) : null ; }
5355 public ByteBuffer virtualTargetAsByteBuffer () { return __vector_as_bytebuffer (16 , 1 ); }
56+ public ByteBuffer virtualTargetInByteBuffer (ByteBuffer _bb ) { return __vector_in_bytebuffer (_bb , 16 , 1 ); }
57+ /**
58+ * Secondary name ignored by core; e.g. may reference a binding specific name (e.g. Java property)
59+ */
60+ public String nameSecondary () { int o = __offset (18 ); return o != 0 ? __string (o + bb_pos ) : null ; }
61+ public ByteBuffer nameSecondaryAsByteBuffer () { return __vector_as_bytebuffer (18 , 1 ); }
62+ public ByteBuffer nameSecondaryInByteBuffer (ByteBuffer _bb ) { return __vector_in_bytebuffer (_bb , 18 , 1 ); }
5463
55- public static void startModelProperty (FlatBufferBuilder builder ) { builder .startObject (7 ); }
64+ public static void startModelProperty (FlatBufferBuilder builder ) { builder .startObject (8 ); }
5665 public static void addId (FlatBufferBuilder builder , int idOffset ) { builder .addStruct (0 , idOffset , 0 ); }
5766 public static void addName (FlatBufferBuilder builder , int nameOffset ) { builder .addOffset (1 , nameOffset , 0 ); }
5867 public static void addType (FlatBufferBuilder builder , int type ) { builder .addShort (2 , (short )type , (short )0 ); }
5968 public static void addFlags (FlatBufferBuilder builder , long flags ) { builder .addInt (3 , (int )flags , (int )0L ); }
6069 public static void addIndexId (FlatBufferBuilder builder , int indexIdOffset ) { builder .addStruct (4 , indexIdOffset , 0 ); }
6170 public static void addTargetEntity (FlatBufferBuilder builder , int targetEntityOffset ) { builder .addOffset (5 , targetEntityOffset , 0 ); }
6271 public static void addVirtualTarget (FlatBufferBuilder builder , int virtualTargetOffset ) { builder .addOffset (6 , virtualTargetOffset , 0 ); }
72+ public static void addNameSecondary (FlatBufferBuilder builder , int nameSecondaryOffset ) { builder .addOffset (7 , nameSecondaryOffset , 0 ); }
6373 public static int endModelProperty (FlatBufferBuilder builder ) {
6474 int o = builder .endObject ();
6575 return o ;
0 commit comments