Use CTW in Ebean ORM

57 views
Skip to first unread message

danu...@gmail.com

unread,
Aug 7, 2025, 11:55:22 PMAug 7
to Ebean ORM
Hi Guys,

I just wanna ask, is it possible to use CTE in Raw SQL Query in Ebean ORM?

I've tried with find() and RawSqlBuilder, but there is an error "Query must be start with select".

Any other way?



Regards,



Argi

Rob Bygrave

unread,
Aug 7, 2025, 11:58:23 PMAug 7
to Ebean ORM
RawSqlBuilder has the unparsed() option so you could use that instead of parse().

Alternatively, use findNative() ... which does automatic mapping of columns using jdbc meta data. 

Cheers, Rob.

Reply all
Reply to author
Forward
0 new messages