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

Kotlin data class support #946

Closed
Burtan opened this issue Jul 31, 2022 · 2 comments
Closed

Kotlin data class support #946

Burtan opened this issue Jul 31, 2022 · 2 comments

Comments

@Burtan
Copy link

Burtan commented Jul 31, 2022

Hi,
are there any plans to support data classes? Not being able to have immutable fields on RealmObjects is a big restrictions!
Thanks!

@cmelchior
Copy link
Contributor

Hi @Burtan

We are probably not going to support model classes as data classes as the data in Realm is inherently mutable, but we have talked about support projections, which represent a read-only view of the data. In that case, exposing it as immutable data classes would be natural. You can read more here: #947

@cmelchior
Copy link
Contributor

Closing as duplicate of #947

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants