Skip to content

CTE Mapping within EntityView #1769

Answered by beikov
aleksvidak asked this question in Q&A
Jul 24, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

It depends what you want to achieve or what the CTE does. If you want to e.g. limit the result of a collection or entity result, you could also create a @Mapping with @Limit. If you want to use a recursive CTE, you will have to do what the StackOverflow post describes.

Seems like in this case a subquery is generated instead of CTE.

Depending on the database that you are using, inlining of the CTE might be the only way to implement this.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@aleksvidak
Comment options

@aleksvidak
Comment options

@beikov
Comment options

@aleksvidak
Comment options

@beikov
Comment options

Answer selected by aleksvidak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants