CTEs and @*ToMany #1755
-
Hello, Is the annotation I get this error I have an entities like so
A CTE
A view
And the criteriaBuilder
I omitted the getters and setters for brevity. Thank you ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Well a |
Beta Was this translation helpful? Give feedback.
-
If anyone is wondering the same thing, I ended using a correlation mappings via entity array syntax which did exactly what I needed it to.
|
Beta Was this translation helpful? Give feedback.
Well a
ToMany
relation would require either a join table or a join column on the target entity, so no, there's no way to make this work with a single CTE I am afraid. You would need to construct your query differently.