Heya, I m new to hibernate. I have to say it really simplifies everything for the SQL query. However, manipulating the returned result is a headache for me at the moment.
The result is returned as list. Most of the time I really want the result to be in result set so that I can manipulate it easier as using result set, you can specifies value by column name or index. In List, I am pretty much owned by own noobity.
In some ocassion, I can retrieve the list into a JSF data table and then just call the member directly. I cannot always do this. Don't ask me why. @.@ spinning head.
Is there a way to get resultset instead of list for hibernate?
Slightly old thread but I cannot resist:
// Code for iterating over a list of objects
for(MappedClass mappedCless : list){
String name = mappedClass.getName();
String id = mappedClass.getId();
// further logic
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With