-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
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 fa85cd2
Add support for embedded classes on the Java side of schema generation
cmelchior 6ec4683
Add missing check for illegal use of single parent reference
cmelchior a5f2ce6
Add preliminary public API's for queries and RealmObjectSchema
cmelchior b543110
Add isEmbedded to mediators
cmelchior 827ee78
Merge branch 'v10' into cm/embedded-objects
cmelchior fd0745d
Merge branch 'v10' into cm/embedded-objects
cmelchior 283aff9
Merge branch 'v10' into cm/embedded-objects
cmelchior 94f6b80
Adding test stubs
cmelchior 2c096f0
Merge branch 'v10' into cm/embedded-objects
cmelchior 232fbb0
Make test compile and convert to Kotlin
cmelchior 747a210
Move test classes to Kotlin
cmelchior 320b8a4
Add Javadoc. Add first copyToRealm test
cmelchior 2365d77
Added support for CopyToRealm and ObjectSchema
cmelchior 8a6c0da
Ad support for embedded objects in typed RealmLists.
cmelchior 88d0a75
Update annotation processor tests
cmelchior bfca1a6
Merge branch 'v10' into cm/embedded-objects
cmelchior a548cb8
Fix Findbugs
cmelchior 71f4652
Cleanup
cmelchior de129fc
Fix faulty cache during copyToRealm. Better autogenerated code.
cmelchior efd62ae
Fix Java 7 support
cmelchior 52d2e56
Add support for insert/insertOrUpdate
cmelchior 88bb423
Add missing methods
cmelchior fa80edb
Fix ObjectServerTest
cmelchior 8d2662d
Merge branch 'v10' into cm/embedded-objects
cmelchior 8c600a7
Apply suggestions from code review
cmelchior a4d06b3
PR feedback
cmelchior 264867f
Merge branch 'cm/embedded-objects' of https://github.com/realm/realm-…
cmelchior de5ac9f
Fix test
cmelchior 0efd5fb
Add missing impl
cmelchior 217f1d3
Fix list tests
cmelchior File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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)) | ||
|
||
### Fixed | ||
* None. | ||
|
@@ -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` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's already there 3 lines above I think? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the the