himashree rawat wrote:Details have not been provided as to how JDBC is faster...
Well, one thing is that with native JDBC you can use
PreparedStatements, which Hibernate may not be able to do as easily (or at all). It uses a hybrid query language called HQL, which probably gets translated to SQL as and when needed, which may make them more difficult to cache.
But the fact of the matter is: Do you care?
Speed is only something
you should be worried about if/when you KNOW that your application is running
too slowly; and since there are thousands of sites out there that have been running Hibernate perfectly happily for years, I wouldn't be "scared off" using it by the dire predictions of some theoretical geeks who live only to benchmark things in ivory tower labs.
Also: You should always consider the source of statements like this. Could it be that they're trying to sell you something? - for example, a "better" Hibernate?
"Send $199 by return of post, and we'll solve all your speed problems..."
Winston