I need to run the following query in QueryDsl Native MySQL.
SELECT cast(json_unquote(JSON_EXTRACT(vendor_master,\'$.vendor.currency\')) as char) as currency
I found the answer for the question.
SimpleExpression exp=Expressions.simpleTemplate(String.class,"cast(json_unquote(json_extract({0},{1})) as char) as currency",vendor.vendorMaster,"$.vendor.currency"); List tuples=sqlQueryFactory.select(exp).from(vendor).fetch();
Thanks for your response.