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

Inheritance Support #50

Open
marwanf1 opened this issue Feb 7, 2021 · 1 comment
Open

Inheritance Support #50

marwanf1 opened this issue Feb 7, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@marwanf1
Copy link

marwanf1 commented Feb 7, 2021

Is there any plan to support inheritance in entities? If it is currently supported, is there any example that shows such usage?

@marwanf1 marwanf1 added the enhancement New feature or request label Feb 7, 2021
@greenrobot
Copy link
Member

For now, the recommended way is to use protocols for common behavior and duplicate the properties in each type. At some point we'll consider some limited inheritance, e.g. define base classes (similar to what we do in Java) to avoid code duplication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants