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




_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to