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

ENH: A query on inherited beans can be restricted to the subtype of one of its children #1602

Merged
merged 1 commit into from Jan 9, 2019

Conversation

rPraml
Copy link
Contributor

@rPraml rPraml commented Jan 4, 2019

Example
You have a query of Parent and want to restrict it, only to return types of ChildA

Query<Parent> query = Ebean.find(Parent.class);
query.setInheritType(ChildA.class);
query.find(); // only ChildA will be found

@rbygrave rbygrave changed the title A query on inherited beans can be restricted to the subtype of one of its children ENH: A query on inherited beans can be restricted to the subtype of one of its children Jan 9, 2019
@rbygrave rbygrave added this to the 11.32.1 milestone Jan 9, 2019
@rbygrave rbygrave merged commit 31c6d16 into ebean-orm:master Jan 9, 2019
@rPraml rPraml deleted the feature/restrict-query-subtype branch January 9, 2019 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants