Questions tagged [greenrobot-objectbox]

9 questions
1
vote
0 answers

Objectbox doesn't store nullable value in one to many relation

I have this one to many relation which looks like this. @Entity() class Product { @Id() int id; String name; String category; int categoryId; WeightType weightType; double? price; double weight; bool isRefunded; Product({ …
Pokaboom
  • 1,110
  • 9
  • 28
1
vote
1 answer

how to add same object in objectbox's box multiple times?

I have ToMany relation which looks like this, @Entity() class Pdf { @Id() int id; Uint8List pdfData; final String customerName; @Property(type: PropertyType.date) final DateTime dateTime; @Backlink() var products =…
Pokaboom
  • 1,110
  • 9
  • 28
1
vote
0 answers

Dart ObjectBox nested query not working as expected

I have the ObjectBox database and it is working pretty well. But nested queries not working as expected List _channels({required String lang}) { final queryBuilder = _channelBox().query(); queryBuilder.linkMany( …
0
votes
0 answers

Another boxStore is open for this directory [ObjectBox problem]

public static BoxStore getBoxStore() { synchronized (TayqaSale.class) { if (sBoxStore == null || sBoxStore.isClosed()) { int flags = 0; sBoxStore = MyObjectBox.builder().maxSizeInKByte(3000000).maxReaders(10000) …
0
votes
0 answers

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 for some of the items Today i populate a table…
0
votes
1 answer

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 is mentioned below. Non-fatal Exception:…
raphire
  • 198
  • 9
0
votes
0 answers

Pragma table info for ObjectBox

I am using ObjectBox for the flutter project. I want to get the pragma table info for the my Product Entity. Anyone know how to get the pragma for particular Entity? Like in sqlite pragma table_info('albums'); cid name type notnull …
0
votes
0 answers

Is ObjectBox Sync Suit for Membership apps?

I am new to ObjectBox Let say we have membership apps for customer app which allow customer to order items every user using his own phone to order, so in my opinion i don't think it is good to "sync" for "customer 1" to "customer 2" phone, which is…
0
votes
3 answers

ObjectBox does not keep previous values after type migration

We had to migrate one of the field-params in an entity from long to BigDecimal. Migration is quite smooth but there is a problem; we want to keep previous values to be set to the migrated field. But as soon as ObjectBox is initialized it defaults…