As I know, using SQL we can select the data with customised form like the query below:
select '<Root value=\"'"|| databaseColumnValue || '\"'" as displayItem from Table";
The selected value looks like below:
<Root value = 10 />
I have tried many ways in JPA to achieve this and haven't found one.
How can I achieve this kind of functionality using JPA ?