Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Embedded Objects #6730

Merged
merged 31 commits into from
Jun 3, 2020
Merged
Changes from 2 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e531ba6
Added preliminary annotation processor support
cmelchior Jan 29, 2020
fa85cd2
Add support for embedded classes on the Java side of schema generation
cmelchior Jan 30, 2020
6ec4683
Add missing check for illegal use of single parent reference
cmelchior Jan 30, 2020
a5f2ce6
Add preliminary public API's for queries and RealmObjectSchema
cmelchior Jan 30, 2020
b543110
Add isEmbedded to mediators
cmelchior Jan 30, 2020
827ee78
Merge branch 'v10' into cm/embedded-objects
cmelchior Feb 25, 2020
fd0745d
Merge branch 'v10' into cm/embedded-objects
cmelchior Feb 28, 2020
283aff9
Merge branch 'v10' into cm/embedded-objects
cmelchior Mar 8, 2020
94f6b80
Adding test stubs
cmelchior Mar 8, 2020
2c096f0
Merge branch 'v10' into cm/embedded-objects
cmelchior May 6, 2020
232fbb0
Make test compile and convert to Kotlin
cmelchior May 6, 2020
747a210
Move test classes to Kotlin
cmelchior May 6, 2020
320b8a4
Add Javadoc. Add first copyToRealm test
cmelchior May 8, 2020
2365d77
Added support for CopyToRealm and ObjectSchema
cmelchior May 18, 2020
8a6c0da
Ad support for embedded objects in typed RealmLists.
cmelchior May 26, 2020
88d0a75
Update annotation processor tests
cmelchior May 26, 2020
bfca1a6
Merge branch 'v10' into cm/embedded-objects
cmelchior May 26, 2020
a548cb8
Fix Findbugs
cmelchior May 26, 2020
71f4652
Cleanup
cmelchior May 26, 2020
de129fc
Fix faulty cache during copyToRealm. Better autogenerated code.
cmelchior May 27, 2020
efd62ae
Fix Java 7 support
cmelchior May 27, 2020
52d2e56
Add support for insert/insertOrUpdate
cmelchior May 28, 2020
88bb423
Add missing methods
cmelchior May 28, 2020
fa80edb
Fix ObjectServerTest
cmelchior May 28, 2020
8d2662d
Merge branch 'v10' into cm/embedded-objects
cmelchior Jun 2, 2020
8c600a7
Apply suggestions from code review
cmelchior Jun 2, 2020
a4d06b3
PR feedback
cmelchior Jun 2, 2020
264867f
Merge branch 'cm/embedded-objects' of https://github.com/realm/realm-…
cmelchior Jun 2, 2020
de5ac9f
Fix test
cmelchior Jun 2, 2020
0efd5fb
Add missing impl
cmelchior Jun 2, 2020
217f1d3
Fix list tests
cmelchior Jun 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Removed Query Based Sync API's and Subscriptions. These API's are not initially supported by MongoDB Realm. They will be re-introduced in a future release. `SyncConfiguration.partionKey()` has been added as a replacement. Read more [here](XXX).

### Enhancements
* None.
* Added support for "Embedded Objects". They are enabled using `@RealmClass(embedded = true)`. An embedded object must have exactly one parent object linking to it and it will be deleted when the the parent is. Embedded objects can also be the parent of other embedded classes. Read more [here](https://realm.io/docs/java/latest/#embedded-objects). (Issue [#6713](https://github.com/realm/realm-java/issues/6713))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the the


### Fixed
* None.
Expand Down Expand Up @@ -43,7 +43,7 @@ NOTE: This version bumps the Realm file format to version 10. It is not possible
* `RealmResults.asJSON()` is no longer `@Beta`.
* Storing large binary blobs in Realm files no longer forces the file to be at least 8x the size of the largest blob.
* Reduce the size of transaction logs stored inside the Realm file, reducing file size growth from large transactions.
* Added support for "Embedded Objects". They are enabled using `@RealmClass(embedded = true)`. An embedded object must have exactly one parent object linking to it and it will be deleted when the the parent is. Embedded objects can also be the parent of other embedded classes. Read more [here](https://realm.io/docs/java/latest/#embedded-objects). (Issue [#6713](https://github.com/realm/realm-java/issues/6713))
* `RealmResults.asJSON()` is no longer `@Beta`
Copy link
Contributor

@Zhuinden Zhuinden Feb 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's already there 3 lines above I think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, there are some merge mistakes that needs to be cleaned up


### Compatibility
* Realm Object Server: 3.23.1 or later.
Expand Down