I have an administrative console in my web application that allows an admin to perform a custom SQL SELECT query on our database.
Underneath, the application is usin
If the JPA provider does not support the retrieval of query metadata, another solution could be the use of a SQL parser like JSQLParser, ZQL or General SQL Parser (comercial), which extracts the fields from the SELECT statement.
SELECT