over « JDBC « JPA Q&A





1. why to prefer JPA over JDBC?    coderanch.com

2. Why I would use JDBC over Hibernate ?    coderanch.com

3. Hibernate over Jdbc    coderanch.com

The other things that I can think of: - You don't need to write tons of JDBC based boiler plate code. - It's easy to model inheritance hierarchies in Hibernate. Therefore, you can have code with a more OO flavour to it. I have no experience in trying this in JDBC. But we used to have a persistence strategy that was ...

4. I cant iterate over a sql resultset???    forum.hibernate.org

If I have a Query using SQL surely I can do the basic steps of while (resultSet.next()) { // do something with one row } But there appears to be now such method on the Query object. Trying to use the Iterator fails. This is quite surprising, along the lines of losing access to the meta data which the basic JDBC ...