[hibernate-dev] Problems with Hibernate 4.1.3
Jochen Schreiber
jocsch at googlemail.com
Thu Jun 14 03:38:27 EDT 2012
Hello,
i have some problems with Hibernate 4.1.3. Before Hibernate 4.1.3 i used Hibernate 3.
1. I don't found the "ResultSet"-Object as in Hibernate 3 so i want to get my data from the query as follows:
SQLQuery q = MainWindow.getSession().createSQLQuery(query).addEntity("ins", ALL_RSC_DATA.class);
ScrollableResults sr = q.scroll();
while (sr.next()) {
ALL_RSC_DATA data = (ALL_RSC_DATA) sr.get()[0];
}
The processing step need to long time. The old version works faster. Where is my fault? Is this not the way to get large data sets and process them?
2. In the old "ResultSet"-Objects i could get the metadata for detecting the column names. Where is this object now or is there a another way to get the column names from an sql query? This query is dynamic so i need to detect which columns are in the query.
With best
bladepit
More information about the hibernate-dev
mailing list