I just read the documentation for JDBC abstraction. I like the features like mapping the query results to an object.
If i want to use both JDBC abstraction and Hibernate in my application, say for example, i want to use JDBC abstraction for queries and Hibernate for insert/update etc how should i do this?
Do i need write a Dao that implements "findXXX" methods using JDBC abstraction and "insert/UpdateXXX" methods using Hibernate and then provide "business interface" say myProjectFacade that uses both in the same TRANSACTION???
Could some one clarify this please?
I read some posts that indicates that hibernate doesn't perform well for "queries" and performs well for "updates/inserts". Hence i'm thinking of using both to get the best of both worlds in my application.
Any comments?
Any sample code that uses both?
Thanks!


Reply With Quote