V3.5.0
This release includes breaking changes to generated code. If you encounter build errors, make sure to clean and build your project (e.g. Build > Rebuild project in Android Studio).
- Add
Query.copy()
andQueryThreadLocal
to obtain aQuery
instance to use in different threads. Learn more about re-using queries. #1071 - Add
relationCount
query condition to match objects that have a certain number of related objects pointing to them. E.g.Customer_.orders.relationCount(2)
will match all customers with two orders,Customer_.orders.relationCount(0)
will match all customers with no associated order. This can be useful to find objects where the relation was dissolved, e.g. after the related object was removed. - Allow using a relation target ID property with a property query. E.g.
query.property(Order_.customerId)
will map results to the ID of the customer of an order. #1028 - Add docs on
DbFullException
about why it occurs and how to handle it. - Do not fail to transform an entity class that contains a transient relation field when using Android Gradle Plugin 7.1 or lower.
- Restore compatibility for Android projects using Gradle 6.1. The minimum supported version for Gradle is 6.1 and for the Android Gradle Plugin 3.4. This should make it easier for older projects to update to the latest version of ObjectBox.
Using Sync? This release uses a new Sync protocol which improves efficiency. Reach out via your existing contact to check if any actions are required for your setup.