- Add
ToOne<>class to wrap related entities. See examples for details.
(thanks @Buggaboo for jump-starting this). - Add
ToMany<>class to wrap related entities. See examples for details. - Significantly improve
Boxread and write performance. - Change
Box.put()andputMany()- now also update given object's ID property.
Note: If you previouslyput()the same new object instance multiple times without setting id, the object will now
be inserted only the first time, and overwritten on subsequent puts of the same instance, its ID is not zero anymore. - Change
Box.putMany()andQuery.FindIds()to return fixed-size lists. - Change
Box.GetMany()to return a fixed-size list by default, with an option to return a growable list. - Change
@Id()annotation to optional - recognized automatically if there's anint idfield (case insensitive). - Make
observable.dartpart ofobjectbox.dartexports, no need to import it separately. - Expose
PutMode- allowing semantics choice between put, update and insert. - Hide internal classes not intended for general use (e.g. all Model* classes).
- Rename
versionLib()tonativeLibraryVersion(). - Change
TxModeenum values to lowercase. - Remove
flagsfrom theProperty()annotation.