Skip to content

Commit 7f7dc13

Browse files
BoxStore: compatible with database version 5.1.1 (2026-01-21 or newer)
1 parent deaa5a6 commit 7f7dc13

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

objectbox-java/src/main/java/io/objectbox/BoxStore.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,15 @@ public class BoxStore implements Closeable {
8484
*/
8585
public static final String JNI_VERSION = "5.1.0-2026-01-19";
8686

87-
/** The ObjectBox database version this Java library is known to work with. */
88-
private static final String VERSION = "5.1.1-dev-2026-01-21";
87+
/**
88+
* The ObjectBox database version this Java library is known to work with.
89+
* <p>
90+
* This should be a version number followed by a date (MAJOR.MINOR.PATCH-YYYY-MM-DD).
91+
* <p>
92+
* This is used (currently only in tests) to make sure a database library has a compatible JNI API by checking the
93+
* version number matches exactly and the date is the same or newer.
94+
*/
95+
private static final String VERSION = "5.1.1-2026-01-21";
8996

9097
private static final String OBJECTBOX_PACKAGE_NAME = "objectbox";
9198
private static BoxStore defaultStore;

0 commit comments

Comments
 (0)