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 of Embedded and ManyToOne nested object projection + Support of @ProjectedFieldName on class fields #36581

Closed
humcqc opened this issue Oct 19, 2023 · 10 comments · Fixed by #36594
Labels
area/panache kind/enhancement New feature or request
Milestone

Comments

@humcqc
Copy link
Contributor

humcqc commented Oct 19, 2023

Description

  1. Add support of @Embedded and @XXXToOne nested objects in panache query projection.

  2. When you use Lombok for DTO, it could be helpfull to have the @ProjectedFieldName annotation available for fields instead of constructor parameters.

Implementation ideas

Add support in CommonPanacheQueryImpl#project

@quarkus-bot
Copy link

quarkus-bot bot commented Oct 20, 2023

/cc @FroMage (panache), @loicmathieu (panache)

humcqc added a commit to humcqc/quarkus that referenced this issue Oct 20, 2023
…ction + Support of @ProjectedFieldName on class fields
humcqc added a commit to humcqc/quarkus that referenced this issue Oct 20, 2023
@humcqc
Copy link
Contributor Author

humcqc commented Oct 20, 2023

Hi @FroMage , @loicmathieu
Could you check a first try in PR: #36594 ?
If ok I will impact the documentation.

Thanks

humcqc added a commit to humcqc/quarkus that referenced this issue Oct 21, 2023
…ction + Support of @ProjectedFieldName on class fields
humcqc added a commit to humcqc/quarkus that referenced this issue Oct 21, 2023
@humcqc
Copy link
Contributor Author

humcqc commented Oct 30, 2023

Hi @FroMage , @loicmathieu, @yrodiere
Any chance someone can have a look?
Without this i cannot use projection and need to use mapstruct that is less efficient
Thanks

@yrodiere
Copy link
Member

I don't have time for this, sorry. Maybe somebody else will. In any case, I'm sure @FroMage accepts pull requests :)

@humcqc
Copy link
Contributor Author

humcqc commented Nov 10, 2023

Hello, @FroMage @loicmathieu any possible update ?

@humcqc
Copy link
Contributor Author

humcqc commented Nov 14, 2023

Hello @yrodiere , should I add other people to have a chance for this to move forward ? Seems @FroMage and @loicmathieu doesn't have time to look at this. Is there anything I can do to unblock ?

@yrodiere
Copy link
Member

Is there anything I can do to unblock ?

Yes, you can work with the Panache maintainers (i.e. not me, but @FroMage or maybe @loicmathieu or someone else) to provide a pull request yourself.

@humcqc
Copy link
Contributor Author

humcqc commented Nov 14, 2023

Thanks @yrodiere!
@FroMage , @loicmathieu any chance to have some feedback ?

@loicmathieu
Copy link
Contributor

Hi @humcqc,
Sorry for the late feedback; your PR somehow goes under my radar. I'll try to have a look this week.

humcqc added a commit to humcqc/quarkus that referenced this issue Nov 15, 2023
…ction + Support of @ProjectedFieldName on class fields
humcqc added a commit to humcqc/quarkus that referenced this issue Nov 15, 2023
@humcqc
Copy link
Contributor Author

humcqc commented Nov 16, 2023

Thanks @loicmathieu

humcqc added a commit to humcqc/quarkus that referenced this issue Nov 17, 2023
Add simple test/example with DogDto2
Rename annotation
Add documentation
humcqc added a commit to humcqc/quarkus that referenced this issue Nov 17, 2023
humcqc added a commit to humcqc/quarkus that referenced this issue Nov 17, 2023
humcqc added a commit to humcqc/quarkus that referenced this issue Nov 28, 2023
…ction + Support of @ProjectedFieldName on class fields
humcqc added a commit to humcqc/quarkus that referenced this issue Nov 28, 2023
humcqc added a commit to humcqc/quarkus that referenced this issue Nov 28, 2023
Add simple test/example with DogDto2
Rename annotation
Add documentation
humcqc added a commit to humcqc/quarkus that referenced this issue Nov 28, 2023
humcqc added a commit to humcqc/quarkus that referenced this issue Nov 28, 2023
humcqc added a commit to humcqc/quarkus that referenced this issue Nov 28, 2023
humcqc added a commit to humcqc/quarkus that referenced this issue Nov 28, 2023
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 28, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 28, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 28, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 30, 2024
…ction + Support of @ProjectedFieldName on class fields
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 30, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 30, 2024
Add simple test/example with DogDto2
Rename annotation
Add documentation
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 30, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 30, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 30, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 30, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 30, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
…ction + Support of @ProjectedFieldName on class fields
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
Add simple test/example with DogDto2
Rename annotation
Add documentation
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
…ction + Support of @ProjectedFieldName on class fields
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
Add simple test/example with DogDto2
Rename annotation
Add documentation
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
humcqc added a commit to humcqc/quarkus that referenced this issue Jan 31, 2024
@humcqc humcqc closed this as completed Feb 1, 2024
@yrodiere yrodiere added this to the 3.9 - main milestone Feb 1, 2024
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
4 participants