Hibernate Team |
|
Joined: Tue Aug 26, 2003 7:19 pm Posts: 2364 Location: Brisbane, Australia
|
To me, what your showing is pure JDBC approach. Which is fine but your not using hibernates APIs. HIbernate provides a collection as the results set so you interate over it using java.util.Iterator (or jdk5 for loop). There might be cases where you need to go to the JDBC level to accomplish something (which will not be often at all). Report queries can be performed efficiently using Hibernate but you may have cases where you decided to employ JDBC level code. I do not see this as being necessarily bad.
|
|