As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [objectbox]

ObjectBox is an object-oriented embedded database and a full alternative for SQLite, developed by Greenrobot. It supports Android and plain-Java.

Filter by
Sorted by
Tagged with
0 votes
0 answers
56 views

Flutter ObjectBox: Incoming index ID does not match existing UID

I'm dealing with an issue related to ObjectBox migrations. Whenever I make a name change to any property in the app, if I re-run the flutter pub run build_runner build command to re-build the ...
Mark Weinhold's user avatar
0 votes
1 answer
31 views

Flutter Objectbox build_runner build exiting with code 78

I'm writing my first flutter app. I've defined the models with objectbox and now I'm trying to build objectbox codes by running flutter pub run build_runner build. And here's the output I get: [INFO] ...
Forever Spring's user avatar
1 vote
1 answer
25 views

Flutter Objectbox how to fix "Read Only File System" Code 30?

I developed my app for Windows and it works perfectly fine. So after some time I tried to build it to Android, it come with an error E/Box (30248): Storage error "Read-only file system" (...
Trisk Khan's user avatar
0 votes
0 answers
11 views

How can i prevent objecbox-jni linkage error?

When start the App it always show followring errors. BoxStore Linkage error: Beginning load of objectbox-jni... BoxStore Linkage error: objectbox-jni (3.5.1) was loaded normally! May I ignore errors? ...
Jr. John's user avatar
1 vote
0 answers
39 views

Objectbox Sync with Fly.io

I would like apply objectbox sync to fly.io. In testing in local, it is fine with the docker command. But in deploying to fly.io, I have no opinion with how to work -model command in fly.io. docker ...
Sithu Aung's user avatar
1 vote
1 answer
49 views

How do i resolve flutter objectbox build error?

I'm a Flutter developer I'm using the obejctbox package for saving local DB. When i upgrade flutter version and build app to make objectbox.g.dart by "flutter pub run build_runner build --delete-...
홍정민's user avatar
0 votes
1 answer
26 views

Is there a way to be notified on ObjectBox Dart model changes?

I am currently working with ObjectBox Dart and I would like to perform migration during data model changes, for example, populating data into the new column. However, I don't find any way to do it. Is ...
Surawich's user avatar
1 vote
1 answer
28 views

Object Box alpine support?

I am trying to build android project in CI/CD environment in alpine distrib with eclipse temurin jdk-11 and the following error happened during unit tests : java.lang.LinkageError: [ObjectBox]...
GREGORY BOUE's user avatar
0 votes
0 answers
26 views

How simplify code for Custom Type in objectbox?

I am trying to optimize the code definition/implementation of a Custom Type on an Objectbox Entity using Flutter and Dart. To declare a custom type in an entity I proceed in this way. @Entity() class ...
Dev Loots's user avatar
  • 678
1 vote
0 answers
51 views

Flutter ObjectBox Mapping and create model

Hello guys I have data models like: class Product { int id; String name; List<ImageList> images; } class ImageList { String name; String src; } I need to store this data to objectbox ...
Przemysław Pluszowy's user avatar
-1 votes
1 answer
178 views

how can i see Object box database in flutter?

I have made a flutter application and to store data in offline mode I use an object box database. but now the issue is how can see what data are stored in a database. how many tables or entries are ...
amit.flutter's user avatar
0 votes
1 answer
98 views

Unsupported operation: Loaded ObjectBox core dynamic library

I updated flutter from 3.5 to latest flutter 3.7.2 flutter --version Flutter 3.7.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision 12cb4eb7a0 (6 ...
Happy Singh's user avatar
0 votes
1 answer
25 views

Does it matter which side of an ObjectBox Many to Many relationship the @Backlink annotation goes on?

The ObjectBox docs and my own empirical research have shown the @Backlink annotation should always be placed on the ToMany side of a One to Many relationship, but it is unclear to me if it matters ...
ubiquibacon's user avatar
  • 10.4k
0 votes
1 answer
45 views

Objectbox flutter apple silicon emulator support

Does objectbox flutter support ios emulator on M1 macbooks? I get this error despite following Getting started guide, however it works fine in CI which also runs on M1 chip (but against physical phone ...
eeqk's user avatar
  • 3,282
0 votes
0 answers
24 views

objectbox query conditions for related entities ignore main table queries

I have this two tables: @Entity() class Cikkek { @Id() int id; String cikkszam = ''; String cikknev = ''; String gyarto = ''; final kategoria = ToOne<Kategoriak>(); } @Entity() ...
Ebadta's user avatar
  • 307
0 votes
0 answers
14 views

Can I query with one "and" and 3 "or" conditions?

Can i have a query, where i have one "and" and three "or" conditions? I tried with this one, but it has webmegjel = 2 entries in the list, so it does and or or , not and (or or). I ...
Ebadta's user avatar
  • 307
0 votes
0 answers
52 views

Creating model: lib/objectbox-model.json

I am trying to create a Objectbox model in flutter app But it shows me the following error ///////////// \[INFO\] Generating build script completed, took 221ms \[INFO\] Reading cached asset graph ...
mastermmz379's user avatar
0 votes
1 answer
91 views

In ObjectBox for Flutter, is there a way to compare two properties?

I'm new to using ObjectBox, so I've been trying to do some experimenting with its query system to familarize myself with it. One of the queries I've been unable to do is a query comparing two ...
Mark Weinhold's user avatar
0 votes
0 answers
58 views

objectbox ToMany relation build gives me: don't know how to initialize param cikkid - no such property

I have this ToMany relation: @Entity() class Cikkek { @Id() int id; int cikkid = 0; String cikkszam = ''; @Backlink("cikk") final Vkodok = ToMany<Vonalkodok>(); Cikkek(...
Ebadta's user avatar
  • 307
1 vote
0 answers
77 views

Dart - Export data from objectbox to firebase

Hi i need export the data created by objectbox to firebase. How could I do it if it is saved in a .mdb file, any ideas?
Carlos Arévalo's user avatar
1 vote
0 answers
65 views

Where to find ObjectBox nonsql database file on Android Emulator(using Windows) and how to open it?

Where can I find ObjectBox nonsql database file on an Android Emulator(using Windows) and what program to use to open the database file to look at the saved records?
DktPhl2018's user avatar
0 votes
0 answers
35 views

Database upgrade on objectbox and drop old table

What i want to achieve is following things. At some point i want do some updates on my data and database. What i want to do is to drop a table and repopulate it again, in order to keep the id-s same ...
user17035623's user avatar
1 vote
1 answer
199 views

Flutter with Equitable and ObjectBox: ToMany relationship not updating properly

I have the following classes: import 'package:equatable/equatable.dart'; import 'package:objectbox/objectbox.dart'; @Entity() /* All fields of a class which extends Equatable should be immutable, but ...
ubiquibacon's user avatar
  • 10.4k
0 votes
0 answers
26 views

Restore deleted Objectbox database form the android phone

I have developed a warehouse ‍delivery app (track and trace) for Android handheld scanners with Flutter and Objectbox as local database. After few months I changed my OS from win10 to Ubuntu 21 and ...
MojtabaRezaeimehr's user avatar
0 votes
1 answer
54 views

Is there an objectbox condition, that can filter by string length?

Can I make a database query, with a condition that filters out any elements when a text field doesn't have length 2 or 3 characters?
Ebadta's user avatar
  • 307
0 votes
2 answers
36 views

Query with order, places accented value at the end

In my flutter project, I use box.query(myquery)..order(Kategoriak_.cikkcsoportnev).build(), but my Áramfejlesztők, szivattyúk category is at the end of the list. How can I order it correctly, so Á ...
Ebadta's user avatar
  • 307
1 vote
0 answers
54 views

How to connect ObjectBox to server instance?

I have a use-case wherein I have to connect objectbox from Java to server instance. I tried with Sync but getting error stating "sync not supported". Below is my code, BoxStore boxStore = ...
Saranya Karuppasamy's user avatar
0 votes
0 answers
35 views

Is it normal if i have more than 200 objectboxes declared in a project?

Im having a project where the requirement is to manage 200++ models persisted in objectbox. I've proceed with the plan, but i find it uncertain whenever i run "flutter packages pub run build-...
Leon Chow's user avatar
0 votes
0 answers
32 views

Objectbox configuration for Swift Package

I would like to use objectbox inside a swift package, not inside a project, but on the documentation I couldn't find a procedure to follow to complete the operation. I found no problem adding the ...
Brunz's user avatar
  • 11
0 votes
1 answer
128 views

Objectbox dart: How to filter objects within objects in ToOne Relation

Suppose I have code like this @Entity() class ObjectOne { int id; String code; String name; final objectTwo = ToOne<ObjectTwo>(); } @Entity() class ObjectTwo { int id; String code; ...
Royhan Rahim's user avatar
0 votes
1 answer
47 views

a password filed for login users using ObjectBox Flutter

How to save password's field Using Object Box in Flutter? I am doing a login form.but i can't find any encryption or something where i can save password in encrption like mysql does . thank you
Blf Medaymen's user avatar
0 votes
1 answer
32 views

ObjectBox golang Write to file

Is there a possible way to write my ObjectBox-Box Data to a file, after parsing it to code. I tried to marshal it with json but it keeps giving me {"ObjectBox":{}} ``
AureumApes's user avatar
0 votes
1 answer
165 views

How to get data from a relation in an entity in ObjectBox

I'm new to ObjectBox. I have a worklistDocumentNumber, from which I need to get report master data by using query. Can anyone help me with this. I tried by adding some filter conditions in query, but ...
Guhan's user avatar
  • 35
0 votes
1 answer
25 views

How to change query condition (not parameter)?

I want to reuse queries, and I know it is possible to change parameter, but how does one change the condition? And do we have to always call query.close()?
nonson's user avatar
  • 107
0 votes
0 answers
118 views

Is there a way to secure data created using Objectbox?

I am currently working on a project using ObjectBox as a database configuration but I want to make sure I can secure the data that I am storing. None of it is sensitive but it is desired in order to ...
Matthew's user avatar
0 votes
0 answers
356 views

Could not generate fromJson code for orders To support the type ToMany you can: Use JsonConverter

I am using objectbox for local database and also json_serializable but their is issue coming I am using two model one is CustomerModel and another is OrderModel and Creating Many to One Relation But ...
Vikash Kumar's user avatar
0 votes
1 answer
72 views

How to use jsonSerialization with objectbox Entity class

I am facing issue when I am using JsonSerialization on Objectobox Entity I tried to find better solution but I could not find
Vikash Kumar's user avatar
1 vote
2 answers
57 views

ObjectBox Failure: "FormatException: Unexpected end of input (at character 1)"

I get the failure [SEVERE] objectbox_generator:generator on lib/$lib$: FormatException: Unexpected end of input (at character 1) ^ [INFO] Running build completed, took 3.9s [INFO] Caching finalized ...
w461's user avatar
  • 2,074
1 vote
0 answers
180 views

How to exclude particular Dart files while compilation in flutter

I'm trying to run my flutter-app in web. So I created a web folder and added all the necessary things. Since I'm using the objectBox in multiple dart files, I'm getting error based on ObjectBox. So ...
Guhan's user avatar
  • 35
0 votes
0 answers
62 views

How I Can Remove diacritics when I search query in ObjectBox?

Has anyway to ignore diacritics when a search a data in object box? for example I like to find users with name joe, jóe or joé Query<User> query = userBox.query( User_.firstName....
Toshi Ossada's user avatar
0 votes
0 answers
65 views

DbSchemaException after updating ObjectBox version

i'm facing a strange issue after updating the ObjectBox Version , from 2.9.1 to 3.4.0, in my Android App. The App crashes on initialization of the BoxStore with: Caused by: io.objectbox.exception....
ZimTis's user avatar
  • 179
0 votes
0 answers
35 views

Multiple search query

Previously I really liked this package, because it was very helpful and easy to understand @Entity() class Person { int id; String name; final address = ToOne<Address>(); } @Entity()...
Royhan Rahim's user avatar
0 votes
1 answer
56 views

Objectbox: ObjectBoxException 10101 remove failed

I am getting the above error while removing multiple box data in transaction. I need to know what is the reason for that and what can be done to avoid this. Thanks very much for the help. Stack trace ...
raphire's user avatar
  • 146
0 votes
0 answers
62 views

What is the best performing way to use Query.watch()?

Here is my situation: I have a chat app, which has a ListView of all the chats on the main screen. Each ListTile has widgets such as unread icons, chat title, etc. Currently, I have set it up so that ...
Tanay Neotia's user avatar
-2 votes
1 answer
190 views

Android - Spring Data JPA

I would like to build an Android app. I am new to Android development, but I work with Spring Boot, so I tought it would be faster for me to write the backend with the latter and use it as a ...
Antonio's user avatar
  • 11
0 votes
1 answer
107 views

Adding ObjectBox to Qt application

I have just tried to add ObjectBox to an empty qt application, but somehow I do not get any further. I tried to follow the instructions: https://cpp.objectbox.io/installation I took the win x64 lib ...
user avatar
0 votes
1 answer
104 views

where should we initialize ObjectBox Store with navigation 2.0 in flutter?

i'm building a flutter App using navigation 2.0 and i'm starting to use ObjectBox library to store user appdata. for now i initialize it that way in my main.dart then import the variable objectBox ...
Badr Erraji's user avatar
2 votes
1 answer
311 views

Futter - Objectbox with Custom Types

Helle everyone, I have the following question: How can I add a support of for Custom Types within Objectbox. Example: class ShopListData { int id; int amount; bool done; ProductData ...
Konst's user avatar
  • 63
0 votes
0 answers
300 views

Flutter - GetX - ObjectBox : Clean code structure Advice needed

I'm new to flutter but I'm trying to learn it the right way (Clean Structure) so that I can reuse my code later, although I'm a Programmer for 7 years and I know the concepts. the App is using these ...
Poula Adel's user avatar
0 votes
1 answer
382 views

How can I add data with objectBox?

The data must be consumed from the ObjectBox's database and loaded into the dependent lists. which is already being done. I have to add an "Add Region" button that already has the function ...
Pablo bustamante's user avatar

1
2 3 4 5
8