Skip to content

Releases: objectbox/objectbox-generator

ObjectBox Generator v5.0.0

27 Nov 14:24

Choose a tag to compare

C/C++

  • Support for external name and type annotations
  • Add the new vector distance type "Geo"
  • Bump the CMake min version to 3.5 for compatibility with CMake 4.x

Go

  • Support for external name and type annotations

TypeScript/JavaScript

  • Releasing a preview of JavaScript code generation, which can be used with the ObjectBox TS/JS library

v4.0.0

04 Nov 20:24

Choose a tag to compare

C++ improvements

  • ObjectBox Generator is now integrated with CMake.
    You can now use add_obx_schema() directly from your C++ project.
    For details, check the Generator documentation page.
  • Support for float vector properties and HNSW vector search indexing
  • The generator is now statically linked for Linux making the executable usable from more distributions

v4.0.0-beta

22 Aug 09:01

Choose a tag to compare

v4.0.0-beta Pre-release
Pre-release

See 4.0.0 final for release notes

v0.14.0

04 Mar 16:54

Choose a tag to compare

General improvements

  • Update FlatBuffers to v23.5.26

C++ improvements

  • The -cpp CLI parameter now defaults to (at least) C++14 output, e.g. now generates std::make_unique()
  • Added new mode -cpp11 for C++11 output (C++11 stays the minimal supported version)
  • New CLI parameters -empty-string-as-null and -nan-as-null to persist "special values" as null in the database
  • Fixes to generated code that fills a given object with DB values: strings, vectors, and optional members are now properly reset on null values
  • Update catch2 to 2.13.10

Getting Started Guide

v0.13.0

01 Apr 09:11

Choose a tag to compare

  • align to-one relation ID model with other language bindings - don't use "unsigned" annotation
  • add id-companion and date-nano annotations for Go to enable TimeSeries model definition

v0.12.0

08 Mar 14:10

Choose a tag to compare

  • objectbox-generator can be run with a path pattern (glob or recursive path style - see objectbox-generator --help) to support entity removal
  • support optional annotation on fields that you want to support NULL value semantics in C and C++; see objectbox-generator --help to specify a type for C++ code (std:: optional/shared_ptr/unique_ptr)
  • add id(assignable) annotation you can use on an ID field if you want to manually set object IDs before inserting (instead of the default auto-increment ID assigned by ObjectBox)
  • add sync(sharedGlobalIds) annotation to disable ID mapping on synced objects
  • C++ generate code - make _OBX_MetaInfo a sub-struct in the generated struct instead of part of the "underscore" class - avoiding potential duplicate symbols

v0.11.0

13 Nov 14:32

Choose a tag to compare

  • support specifying an index type with a unique annotation
  • add sync entity annotation
  • accommodate changes in objectbox-c v0.11.0

v0.10.1

25 Aug 12:40

Choose a tag to compare

  • decrease FlatBuffers minimum version dependency to v1.11.0
  • Go generator support comma in addition to space as a multiple annotation separator

v0.10.0

14 Aug 11:57

Choose a tag to compare

  • update to objectbox-c v0.10.0 introducing many new C++ API features
  • new generated C & C++ functions simplifying the most common operations
  • split generated C++ code to headers (.obx.hpp) and sources (.obx.cpp) - make sure to use in your project and remove the old "-cpp.obx.h"
  • support generating Go code moved from objectbox-gogen
  • standalone (many-to-many) relation and date-nano annotation support

v0.9.1

23 Jun 15:47

Choose a tag to compare

  • generated code fixes
  • update to objectbox-c v0.9.1