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 constructor expressions in SOQL #206

Open
ledsoft opened this issue Sep 22, 2023 · 0 comments
Open

Support constructor expressions in SOQL #206

ledsoft opened this issue Sep 22, 2023 · 0 comments

Comments

@ledsoft
Copy link
Contributor

ledsoft commented Sep 22, 2023

As a user, I want to be able to easily create objects (DTOs) from SOQL query results. JPQL allows specifying a constructor that is passed the projected query variables and is used to initialize the result objects. The syntax is:

SELECT NEW example.CountryAndCapital(c.name, c.capital.name) FROM Country c

It would be nice if SOQL supported this feature as well.

ledsoft added a commit that referenced this issue Nov 26, 2023
…rty values in referenced lists.

Signed-off-by: Martin Ledvinka <[email protected]>
ledsoft added a commit that referenced this issue Nov 26, 2023
…ing support for data property referenced list values.

Signed-off-by: Martin Ledvinka <[email protected]>
ledsoft added a commit that referenced this issue Nov 26, 2023
…ty referenced list values.

Signed-off-by: Martin Ledvinka <[email protected]>
ledsoft added a commit that referenced this issue Dec 3, 2023
ledsoft added a commit that referenced this issue Dec 3, 2023
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

1 participant