I am generating a report using Hibernate.
Constructing SQL from various table joins and querying using Hibernate scrollable results
.
Below is the sample code:
Query query = session.createSQLQuery("select * from A, B where A.id= B.Val");
ScrollableResults results = query.scroll(ScrollMode.FORWARD_ONLY);
I want to know all the column names and column types before generating an Excel report.
How to achieve this with Hibernate scrollable results
?