Open phdbutbachelor opened 8 months ago
Do you have more extensive exception information? Usually, the exception will have additional information a few levels deeper inside explaining why the code could not be translated. When I just glance over the queries though, grouping queries are not allowed in subqueries (they're special in SQL and JPQL, so they are only supported at the top-level of a query).
It also looks like, maybe you don't need any subqueries here. One left outer join between CommonEvent and User using CreatorId, then just use a normal join of that to CommonEvent based on SourceId. And then perform your grouping operation on everything afterwards. The subquery doesn't seem to be necessary.
Hello! I want to make a query like:
but throw a exception like 'can't thanslate to code', how to fix it?