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

Add ManyToOne relation filtering in PanacheEntityResource #32150

Closed
gmuellerinform opened this issue Mar 27, 2023 · 2 comments · Fixed by #38116
Closed

Add ManyToOne relation filtering in PanacheEntityResource #32150

gmuellerinform opened this issue Mar 27, 2023 · 2 comments · Fixed by #38116
Labels
area/panache kind/enhancement New feature or request
Milestone

Comments

@gmuellerinform
Copy link
Contributor

Description

Consider the following typical setup:

@Entity
public class Application extends PanacheEntityBase {

    @Id
    public Long id;

 ...
}

@Entity
public class ApplicationRole extends PanacheEntityBase {

    @Id
    public Long id;

    @ManyToOne(fetch = FetchType.LAZY)
    @NotNull
    public Application application;

...
}
public interface ApplicationRoles extends PanacheEntityResource<ApplicationRole, Long> {

}

For may use cases it would like to call /application-roles?application=2

This would be a great addition and is much easier than #28450

Thanks a lot!

Implementation ideas

No response

@gmuellerinform gmuellerinform added the kind/enhancement New feature or request label Mar 27, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Mar 27, 2023

/cc @FroMage (panache), @Sgitario (rest-data-panache), @loicmathieu (panache)

@gmuellerinform
Copy link
Contributor Author

Hi! Any news on this? It would be really useful!

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

Successfully merging a pull request may close this issue.

1 participant