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

Support for Polymorphism #180

Open
davidjoh0 opened this issue Oct 3, 2017 · 2 comments
Open

Support for Polymorphism #180

davidjoh0 opened this issue Oct 3, 2017 · 2 comments

Comments

@davidjoh0
Copy link

Hi,

Does/will catatumbo support polymorphism, so that we can define a polymorphic hierarchy of related entity classes, and then load and query them without knowing the specific subtype?

Similar to objectify: https://github.com/objectify/objectify/wiki/Entities#polymorphism

Many thanks,

David

@sai-pullabhotla
Copy link
Owner

@davidjoh0 - Currently Catatumbo does not support what Objectify does - store related entities as 'One Kind' in the Datastore.

Entities in Catatumbo can extend from a MappedSuperClass, but each concrete entity is mapped to its own Kind in the Datastore. Not sure if that works for you. I will mark this as an enhancement request.

@davidjoh0
Copy link
Author

@sai-pullabhotla many thanks for the quick response; annotating the concrete classes will work for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants